Geldersma, Matt (AGRN) wrote:
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.
In this case, either you declared an fo:bookmark-tree before the
fo:layout-master-set, or you forgot to declare an fo:l-m-s, which you
*must* have for an fo:root.
Look at the content model of fo:root[1]:
(layout-master-set,declarations?,bookmark-tree?,(page-sequence|page-sequence-wrapper)+)
This says that fo:root must have as immediate children/descendants,
***IN THIS ORDER***:
1.) one l-m-s
2.) an optional declarations
3.) an optional bookmark tree
4.) at least one of a series of page-sequences and page-sequence-wrappers.
(Ignore for the moment fo:page-sequence-wrapper, that's a 1.1 construct
FOP doesn't have).
[1] http://www.w3.org/TR/xsl11/#fo_root
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.
Here, you're trying to make an fo:bookmark-tree an immediate child of an
fo:l-m-s, which is invalid.
The layout master set[2] may have either of these two FO's as children ONLY:
(simple-page-master|page-sequence-master)+
[2]
http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_layout-master-set
The thing to keep in mind was that fox:outline construct was not created
in the spirit of the XSL recommendation, where each fo: has a defined
location in which it is valid, because fox:outline was allowed to be
placed anywhere. fo:bookmark-tree, OTOH, may be placed in only one
location as defined above.
Make sure your fo: follows the content model of the 1.0 specification,
with the exception of fo:bookmark-tree, which follows the 1.1 spec. FOP
0.92 enforces it.
Glen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]