]> granicus.if.org Git - docbook-dsssl/commitdiff
Remove call to id.attribute template in simple.xlink
authorBob Stayton <bobs@sagehill.net>
Wed, 15 Oct 2014 21:54:42 +0000 (21:54 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 15 Oct 2014 21:54:42 +0000 (21:54 +0000)
because it produces duplicate ids in the output because
the element template calling simple.xlink generates the
id attribute.

xsl/html/inline.xsl

index 6fc48dfc17083119cfe0b47a8a30e94cd5789e53..102a5393ff19a4571c8dd3c34dca671db63038e0 100644 (file)
               <xsl:otherwise>
                 <a>
                   <xsl:apply-templates select="." mode="common.html.attributes"/>
+                  <!-- id attribute goes on the element calling
+                  simple.xlink, not on the anchor element, so
+                  this is commented out:
                   <xsl:call-template name="id.attribute"/>
+                  -->
 
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">