Hello I am trying to convert an old xslt sheet from FOP .205 to .92
beta. The sheet uses fox:outline and fox:label which I see is not
supported in the new version so I tried converting everything using
fo:bookmark-tree so the code looks like this:
<xsl:template name="outline_bookmark">
<fo:bookmark-tree>
<xsl:if test="$showXMLBaseline = 1">
<fo:bookmark internal-destination="xml-baseline-history">
<fo:bookmark-title>Revision History</fo:bookmark-title>
</fo:bookmark>
</xsl:if>
<xsl:if test="$showDoorsBaseline = 1">
<fo:bookmark internal-destination="baseline-history">
<fo:bookmark-title>Doors Baseline
History</fo:bookmark-title>
</fo:bookmark>
</xsl:if>
<fo:bookmark internal-destination="table-of-contents">
<fo:bookmark-title>Table of Contents</fo:bookmark-title>
</fo:bookmark>
<xsl:for-each
select="doorsmodule/doorsobject[string-length(objectheading) > 0 and
@objectlevel = 1]">
<fo:bookmark internal-destination="{generate-id(.)}" >
<xsl:variable name ="p_id"><xsl:value-of
select="normalize-space(translate(@objectidentifier,
objectattributes/absolutenumber, ''))" /></xsl:variable>
<fo:bookmark-title><xsl:value-of
select="concat(@objectnumber, '. ',
objectheading)"/></fo:bookmark-title>
<xsl:call-template name="outline_bookmark_children">
<xsl:with-param name="parentlevel"
select="@objectlevel" />
<xsl:with-param name="parentnumber"
select="@objectnumber" />
<xsl:with-param name="parentid" select="$p_id" />
</xsl:call-template>
</fo:bookmark>
</xsl:for-each>
</fo:bookmark-tree>
</xsl:template>
But when I try to use it I get this error
org.apache.fop.fo.ValidationExceltion: Error(unknown location): For
fo:root, fo:layout-master-set must be declared before fo:bookmark tree.
I try adding fo:layout-master-set and then I get an error saying
fo-bookmark-tree is not a valid child of fo:layout-master-set. What am I
doing wrong? This is my first attempt at working with FOP so any help
would be appreciated.
******************************************
The information contained in, or attached to, this e-mail, may contain
confidential information and is intended solely for the use of the individual
or entity to whom they are addressed and may be subject to legal privilege. If
you have received this e-mail in error you should notify the sender immediately
by reply e-mail, delete the message from your system and notify your system
manager. Please do not copy it for any purpose, or disclose its contents to
any other person. The views or opinions presented in this e-mail are solely
those of the author and do not necessarily represent those of the company. The
recipient should check this e-mail and any attachments for the presence of
viruses. The company accepts no liability for any damage caused, directly or
indirectly, by any virus transmitted in this email.
******************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]