]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix minor bugs in generate.id.attributes implementation.
authorBob Stayton <bobs@sagehill.net>
Sun, 22 Apr 2012 06:23:51 +0000 (06:23 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 22 Apr 2012 06:23:51 +0000 (06:23 +0000)
xsl/html/block.xsl
xsl/html/division.xsl
xsl/html/footnote.xsl
xsl/html/sections.xsl

index 7744eb77ec83e6b52801d4ec054ee167a1347b6e..c5c87d03ab1b9bc40b48e43c4ed68f7cd1a10b92 100644 (file)
         </xsl:otherwise>
       </xsl:choose>
 
-      <!-- need to capture the id of the listitem -->
-      <xsl:if test="position() = 1 and 
-                   (parent::listitem/@id or parent::listitem/@xml:id)">
-        <span>
-          <xsl:call-template name="id.attribute">
-            <xsl:with-param name="node" select="parent::listitem"/>
-          </xsl:call-template>
-        </span>
-      </xsl:if>
-
       <xsl:copy-of select="$content"/>
     </p>
   </xsl:variable>
index 78a167486a4e3cc04d3e81dc71923b9a0eaf595a..4c0fbc7ffec7c6a4344da86b61335614c18cf13e 100644 (file)
 
   <h1>
     <xsl:attribute name="class">title</xsl:attribute>
-    <xsl:call-template name="id.attribute">
-      <xsl:with-param name="node" select="$node"/>
-      <xsl:with-param name="conditional" select="0"/>
-    </xsl:call-template>
     <xsl:call-template name="anchor">
       <xsl:with-param name="node" select="$node"/>
       <xsl:with-param name="conditional" select="0"/>
index 46243c52d6241adca7a7888b576f7303d8cd14ab..1a4ee0062ffc4256149e2fe1e653ea75cf047b18 100644 (file)
@@ -272,7 +272,7 @@ linkend/id: <xsl:value-of select="@linkend"/>
 
 <xsl:template match="footnote" name="process.footnote" mode="process.footnote.mode">
   <xsl:variable name="id">
-    <xsl:text>#ftn.</xsl:text>
+    <xsl:text>ftn.</xsl:text>
     <xsl:call-template name="object.id">
       <xsl:with-param name="conditional" select="0"/>
     </xsl:call-template>
index e6b0e789a0ff70b1cc22d1e1139b201b9952ffb0..cdce2877f9fe9f6f3da0c3ed69e6add438a01940 100644 (file)
       </xsl:if>
     </xsl:if>
     <xsl:if test="$allow-anchors != 0">
-      <xsl:call-template name="id.attribute">
-        <xsl:with-param name="node" select="$section"/>
-        <xsl:with-param name="conditional" select="0"/>
-      </xsl:call-template>
       <xsl:call-template name="anchor">
         <xsl:with-param name="node" select="$section"/>
         <xsl:with-param name="conditional" select="0"/>