Page x of y is usually implemented through page-number-citation in
XSL-FO. When merging documents you have to make sure that the
page-number-citation points at the correct "id". When combining
documents you have to combine the layout-master-set and then put the
individual page-sequences after each other. Furthermore, you need to
make sure no "id" attributes will be duplicate otherwise you may get
errors during processing. I've once written a stylesheet that duplicates
an XSL-FO document n times into a single resulting XSL-FO document. The
key here is to prefix all the "id" and "ref-id" attribute values so
obtain unique IDs.

On 10.01.2006 11:07:17 Thomas.Schmitt.extern wrote:
> Dear all, 
>  
> I have a document which defines a header and footer in RTF. I am using
> RTFtoFO to generate the fo file.
> Next I am merging another fo document by appending the flow body subtree to
> the flow body of the first file.
>  
> The resulting pdf displays in the footer on page 1 "Page 1 of 1", on page 2
> the footer is gone and on page 3 it displays "Page 3 of 1", which is not bad
> but still wrong. It should be "Page 3 of 3".
>  
> Does anybody have a hint where I can start the search for a fix ?
> Is the idea of appending document by combining their flow subtrees wrong ?
> Can this effect page numbering (because the document's size is increased) ?
>  
> Thanks, Thomas 


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to