]> granicus.if.org Git - docbook-dsssl/commitdiff
Skip generating fox:destination on a footnote - id attribute on footnotes is not
authorAlexey Neyman <stilor@att.net>
Sat, 21 Sep 2013 23:29:39 +0000 (23:29 +0000)
committerAlexey Neyman <stilor@att.net>
Sat, 21 Sep 2013 23:29:39 +0000 (23:29 +0000)
passed to generated FO, so FOP complains about unresolved ID in destination.

xsl/fo/fop1.xsl

index 19af19ce7af2094c29e4f421c13086157f0074c0..7daf16b8c64de37131eb87fe2524521c98a9be68 100644 (file)
   </xsl:variable>
   <xsl:choose>
     <xsl:when test="self::index and $generate.index = 0"/>
-    <xsl:when test="$id != ''">
+    <!-- ID on the footnote is not passed to the output FO -->
+    <xsl:when test="not(self::footnote) and $id != ''">
       <fox:destination internal-destination="{$id}"/>
       <xsl:apply-templates select="*" mode="fop1.foxdest"/>
     </xsl:when>