diff options
author | Nikolaus Schulz <microschulz@web.de> | 2011-03-28 23:01:24 +0200 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2011-03-28 23:06:07 +0200 |
commit | 8190e4807eb73d6156b874659b3464568900241c (patch) | |
tree | 1d11677de577a2c013f70f1d365d746530482927 /db2man.xsl | |
parent | 0437ec3e8bed6855405c4d44f367b103a9dc1154 (diff) | |
download | archivemail-8190e4807eb73d6156b874659b3464568900241c.tar.gz archivemail-8190e4807eb73d6156b874659b3464568900241c.tar.bz2 archivemail-8190e4807eb73d6156b874659b3464568900241c.zip |
Manpage: lots of cleanup and fixes in the XML and formatting
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> |