We do something similar by first rendering our source FO document to a
work file in the XEP intermediate format with a command like this:
xep -valid -fo source.fo -at work.xep
It is then straightforward to extract page numbers and references from
the work file and use them to create your index.
Finally, render the intermediate file to PDF with a command like this:
xep -valid -xep work.xep dest.pdf
Regards,
BJB
CRW150@yahoo.com wrote:
>Hello,
>
>I need to create a main document in one .pdf file and an index for that
>document in a separate .pdf file. I know this has been addressed before
>on this list. I've read all the threads I could find, the XEP
>documentation on intermediate output, and everything I can find
>Googling for "extract page number" and "XEP intermediate". I have no
>problem writing stylesheets to create an index at the end of a document
>when the output is a single .pdf file. But I get lost trying to
>separate them. I don't understand the "big picture". Please tell me
>what keywords I should search for. Or, are there example stylesheets
>available somewhere for this process? I know how to create a file in
>XEP intermediate format, and how to transform that into a .pdf file.
>But I need to see an example of how to run XSLT on the intermediate
>file to split it into two XEP intermediate files (main document and
>index) before transforming into .pdf. The point being to preserve the
>page numbers. Perhaps I am not creating all that's necessary in the .fo
>file before converting it to XEP intermediate format. I don't know.
>
>I hope this makes sense. I would appreciate any pointers to examples or
>information sources.
>
>Thanks,
>Susan
>
>
>
>__________________________________
>Yahoo! FareChase: Search multiple travel sites in one click.
>http://farechase.yahoo.com
>-------------------
>(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
>in the body of the message to majordomo@renderx.com from the address
>you are subscribed from.
>(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
>
>
>
>
>
-- Brian J. Butler BJB Software, Inc. 76 Bayberry Lane Holliston, MA 01746 E-mail: bjbutler@bjbsoftware.com Web: http://www.bjbsoftware.com Phone: 508-429-1441 Fax: 419-710-1867 ------------------- (*) To unsubscribe, send a message with words 'unsubscribe xep-support' in the body of the message to majordomo@renderx.com from the address you are subscribed from. (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.htmlReceived on Fri Oct 28 06:34:03 2005
This archive was generated by hypermail 2.1.8 : Fri Oct 28 2005 - 06:34:03 PDT