]> granicus.if.org Git - docbook-dsssl/commitdiff
Added names to the link templates so that they can be called that way
authorNorman Walsh <ndw@nwalsh.com>
Sat, 6 Oct 2001 20:56:39 +0000 (20:56 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 6 Oct 2001 20:56:39 +0000 (20:56 +0000)
xsl/html/xref.xsl

index d15d3cd46c96a830af446c0f177471f30d0863d6..8e3c68c7dfd827b34362644bd991a93fe224d61f 100644 (file)
 
 <!-- ==================================================================== -->
 
-<xsl:template match="anchor">
+<xsl:template match="anchor" name="anchor">
   <xsl:call-template name="anchor"/>
 </xsl:template>
 
 <!-- ==================================================================== -->
 
-<xsl:template match="xref">
+<xsl:template match="xref" name="xref">
   <xsl:variable name="targets" select="id(@linkend)"/>
   <xsl:variable name="target" select="$targets[1]"/>
   <xsl:variable name="refelem" select="local-name($target)"/>
 
 <!-- ==================================================================== -->
 
-<xsl:template match="link">
+<xsl:template match="link" name="link">
   <xsl:variable name="targets" select="id(@linkend)"/>
   <xsl:variable name="target" select="$targets[1]"/>
 
   </a>
 </xsl:template>
 
-<xsl:template match="ulink">
+<xsl:template match="ulink" name="ulink">
   <a>
     <xsl:if test="@id">
       <xsl:attribute name="name">
   </a>
 </xsl:template>
 
-<xsl:template match="olink">
+<xsl:template match="olink" name="olink">
   <xsl:call-template name="anchor"/>
   <xsl:variable name="localinfo" select="@localinfo"/>