]> granicus.if.org Git - docbook-dsssl/commitdiff
xref element with endterm attribute now uses normal templates
authorBob Stayton <bobs@sagehill.net>
Tue, 17 Jul 2001 03:39:40 +0000 (03:39 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 17 Jul 2001 03:39:40 +0000 (03:39 +0000)
to process the children of the element pointed to by the endterm
ID. Formerly it just used the built-in template and rendered
just the text nodes.

xsl/html/xref.xsl

index 652c1c6b08df3612ebb8d3a51e405c43fe53d318..caf1afc9ee6dc0cc2c28c8b60f08ac1c6781b932 100644 (file)
@@ -83,7 +83,7 @@
                <xsl:text>???</xsl:text>
              </xsl:when>
              <xsl:otherwise>
-               <xsl:apply-templates select="$etarget" mode="xref.text"/>
+               <xsl:apply-templates select="$etarget" mode="endterm"/>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:when>
   </xsl:choose>
 </xsl:template>
 
+<xsl:template match="*" mode="endterm">
+  <xsl:apply-templates select="./node()"/>
+</xsl:template>
+
 <!-- ==================================================================== -->
 
 <xsl:template match="*" mode="xref-to">