]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle firstterm like glossterm in mode="xref-to".
authorBob Stayton <bobs@sagehill.net>
Sat, 21 Mar 2009 06:37:34 +0000 (06:37 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 21 Mar 2009 06:37:34 +0000 (06:37 +0000)
xsl/html/xref.xsl

index 8157579f46e65d697ec534a35cca0894d65b7ed9..872d81691cfdc67f2cfe5c32851dfeef17bafbfc 100644 (file)
   </xsl:choose>
 </xsl:template>
 
-<xsl:template match="glossterm" mode="xref-to">
+<xsl:template match="glossterm|firstterm" mode="xref-to">
   <xsl:apply-templates/>
 </xsl:template>
 
 
       <xsl:variable name="hottext">
         <xsl:choose>
-          <xsl:when test="$content">
+          <xsl:when test="string-length($content) != 0">
             <xsl:copy-of select="$content"/>
           </xsl:when>
           <xsl:otherwise>