]> granicus.if.org Git - docbook-dsssl/commitdiff
This patch adds support for multiple refnames.
authorMartijn van Beers <lotr@users.sourceforge.net>
Wed, 1 May 2002 20:55:14 +0000 (20:55 +0000)
committerMartijn van Beers <lotr@users.sourceforge.net>
Wed, 1 May 2002 20:55:14 +0000 (20:55 +0000)
(another twaugh patch)

contrib/xsl/db2man/db2man.xsl

index 3b240d468e0737ba4b58e026dfed35c4494d4221..e702d1e6e76a0d6e9b47f2efdd4abbc6358528db 100644 (file)
 
 <xsl:template match="refnamediv">
   <xsl:text>.SH NAME&#10;</xsl:text>
-  <xsl:value-of select="refname"/>
+  <xsl:for-each select="refname">
+    <xsl:if test="position()>1">
+      <xsl:text>, </xsl:text>
+    </xsl:if>
+    <xsl:value-of select="."/>
+  </xsl:for-each>
   <xsl:text> \- </xsl:text>
-  <xsl:value-of select="refpurpose"/>
+  <xsl:value-of select="normalize-space (refpurpose)"/>
 </xsl:template>
 
 <xsl:template match="refentry/refentryinfo"></xsl:template>