]> granicus.if.org Git - docbook-dsssl/commitdiff
Tweaked handling of keywords to avoid multiple templates
authorNorman Walsh <ndw@nwalsh.com>
Sun, 8 Jul 2001 18:11:49 +0000 (18:11 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 8 Jul 2001 18:11:49 +0000 (18:11 +0000)
xsl/html/keywords.xsl

index c3b5f706e183d437184880bb1cfc0cb398412f15..013858efc1e9f29b46601f723db7422120d2f678 100644 (file)
   </meta>
 </xsl:template>
 
-<xsl:template match="keyword[position()!=last()]" mode="html.header">
-  <xsl:apply-templates/><xsl:text>, </xsl:text>
-</xsl:template>
-
-<xsl:template match="keyword[position()=last()]" mode="html.header">
+<xsl:template match="keyword" mode="html.header">
   <xsl:apply-templates/>
+  <xsl:if test="following-sibling::keyword">, </xsl:if>
 </xsl:template>
 
 <!-- ==================================================================== -->