]> granicus.if.org Git - docbook-dsssl/commitdiff
apply glosslist support patch from twaugh
authorMartijn van Beers <lotr@users.sourceforge.net>
Fri, 17 May 2002 16:43:57 +0000 (16:43 +0000)
committerMartijn van Beers <lotr@users.sourceforge.net>
Fri, 17 May 2002 16:43:57 +0000 (16:43 +0000)
contrib/xsl/db2man/lists.xsl

index cd389d7b34c825cd1c2bfcc9594fb6a78382e276..39f19b99e5cec03f341e1fb0cd1e08624dd735a2 100644 (file)
   </xsl:if>
 </xsl:template>
 
-<xsl:template match="varlistentry">
+<xsl:template match="varlistentry|glossentry">
   <xsl:text>&#10;.TP&#10;</xsl:text>
   <xsl:apply-templates/>
 </xsl:template>
 
-<xsl:template match="variablelist" mode="list">
+<xsl:template match="variablelist|glosslist" mode="list">
   <xsl:text>&#10;.RS&#10;</xsl:text>
   <xsl:apply-templates/>
   <xsl:text>&#10;.RE&#10;</xsl:text>
 </xsl:template>
 
-<xsl:template match="varlistentry/term">
+<xsl:template match="varlistentry/term|glossterm">
   <xsl:variable name="content">
     <xsl:apply-templates/>
   </xsl:variable>
   <xsl:text>, </xsl:text>
 </xsl:template>
 
-<xsl:template match="varlistentry/term[position()=last()]" priority="2">
+<xsl:template
+     match="varlistentry/term[position()=last()]|glossterm[position()=last()]"
+     priority="2">
   <xsl:variable name="content">
     <xsl:apply-templates/>
   </xsl:variable>
   <xsl:value-of select="normalize-space($content)"/>
 </xsl:template>
 
-<xsl:template match="varlistentry/listitem">
+<xsl:template match="varlistentry/listitem|glossdef">
   <xsl:text>&#10;</xsl:text>
   <xsl:apply-templates mode="list"/>
 </xsl:template>