]> granicus.if.org Git - docbook-dsssl/commitdiff
Added fox:destination extension inside fox:outline to support
authorBob Stayton <bobs@sagehill.net>
Wed, 20 Apr 2005 08:11:36 +0000 (08:11 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 20 Apr 2005 08:11:36 +0000 (08:11 +0000)
linking to internal destinations.

xsl/fo/fop.xsl

index 0eeb3598f0ebe924cd79177ffbf5db5f63f2460e..91c0a978017eba0dfe5deda5cb7ef7b5f6779508 100644 (file)
@@ -23,6 +23,9 @@ translates characters with code>255 back to ASCII.
 "'aaaccccddeeeeeegggghhiiiiijklllllnnnnooorrrsssstttuuuuuuwyzzzAAACCCCDDEEEEEEGGGGHHIIIIIJKLLLLLNNNNOOORRRSSSSTTTUUUUUUWYYZZZ'"/>
 
 <xsl:template match="*" mode="fop.outline">
+  <xsl:if test="@id">
+    <fox:destination internal-destination="{@id}"/>
+  </xsl:if>
   <xsl:apply-templates select="*" mode="fop.outline"/>
 </xsl:template>
 
@@ -79,6 +82,7 @@ translates characters with code>255 back to ASCII.
       <xsl:apply-templates select="*" mode="fop.outline"/>
     </xsl:otherwise>
   </xsl:choose>
+  <fox:destination internal-destination="{$id}"/>
 </xsl:template>
 
 </xsl:stylesheet>