You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by fe...@apache.org on 2007/12/11 09:01:48 UTC
svn commit: r603168 -
/forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl
Author: ferdinand
Date: Tue Dec 11 00:01:28 2007
New Revision: 603168
URL: http://svn.apache.org/viewvc?rev=603168&view=rev
Log:
fox:outline-elements (no longer supported in fop 0.94) replaced with bookmark-tree (new in xsl-fo 1.1)
Modified:
forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl
Modified: forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl
URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl?rev=603168&r1=603167&r2=603168&view=diff
==============================================================================
--- forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl (original)
+++ forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl Tue Dec 11 00:01:28 2007
@@ -18,19 +18,20 @@
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:fox="http://xml.apache.org/fop/extensions"
version="1.0">
<xsl:template
match="document"
mode="outline">
+ <fo:bookmark-tree>
<xsl:apply-templates
select="body/section"
mode="outline" />
+ </fo:bookmark-tree>
</xsl:template>
<xsl:template
match="section"
mode="outline">
- <fox:outline>
+ <fo:bookmark>
<xsl:attribute
name="internal-destination">
<xsl:choose>
@@ -45,7 +46,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
- <fox:label>
+ <fo:bookmark-title>
<xsl:number
format="1.1.1.1.1.1.1"
count="section"
@@ -53,10 +54,10 @@
<xsl:text> </xsl:text>
<xsl:value-of
select="normalize-space(title)" />
- </fox:label>
+ </fo:bookmark-title>
<xsl:apply-templates
select="section"
mode="outline" />
- </fox:outline>
+ </fo:bookmark>
</xsl:template>
</xsl:stylesheet>