diff options
Diffstat (limited to 'db2man.xsl')
-rw-r--r-- | db2man.xsl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/db2man.xsl b/db2man.xsl new file mode 100644 index 0000000..bcc3f61 --- /dev/null +++ b/db2man.xsl @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="1.0"> + <xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl"/> + + <!-- Use .TP list for the variablelist describing the strtime() directives. --> + <!-- This hack aligns the indented paragraphs horizontally with their --> + <!-- labels. --> + <xsl:template match="variablelist[attribute::id='strftime']/varlistentry"> + <xsl:text>.TP </xsl:text> + <xsl:for-each select="term"> + <xsl:variable name="content"> + <xsl:apply-templates/> + </xsl:variable> + <xsl:value-of select="normalize-space($content)"/> + <xsl:choose> + <xsl:when test="position() = last()"/> <!-- do nothing --> + <xsl:otherwise> + <!-- * if we have multiple terms in the same varlistentry, generate --> + <!-- * a separator (", " by default) --> + <xsl:value-of select="$variablelist.term.separator"/> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + </xsl:template> + +</xsl:stylesheet> |