]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix handling of id attributes on callouts.
authorBob Stayton <bobs@sagehill.net>
Fri, 27 Apr 2012 21:50:53 +0000 (21:50 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 27 Apr 2012 21:50:53 +0000 (21:50 +0000)
xsl/html/callout.xsl

index 2eb290415092080d70ba534c0f997f68b370aa85..610a5d24459c38d26793be356908af9841dda5d8 100644 (file)
         <xsl:apply-templates select="." mode="common.html.attributes"/>
         <xsl:choose>
           <xsl:when test="$generate.id.attributes = 0">
+            <!-- force an id attribute here -->
             <xsl:if test="@id or @xml:id">
               <xsl:attribute name="name">
                 <xsl:value-of select="(@id|@xml:id)[1]"/>
       </a>
     </xsl:when>
     <xsl:otherwise>
-      <xsl:call-template name="id.attribute"/>
+      <xsl:if test="$generate.id.attributes != 0">
+        <xsl:if test="@id or @xml:id">
+          <span>
+             <xsl:attribute name="id">
+                <xsl:value-of select="(@id|@xml:id)[1]"/>
+              </xsl:attribute>
+          </span>
+        </xsl:if>
+      </xsl:if>
       <xsl:call-template name="anchor"/>
       <xsl:apply-templates select="." mode="callout-bug"/>
     </xsl:otherwise>