Forum How do I...?

...cross-link XIncluded files?

RBK
I attach a zip file containing a simple book that pulls in two chapters using XML inclusions.
The chapters contain hyperlinks to each other.
When I invoke
prince chapter1.html chapter2.html -o book.pdf
I obtain hyperlinks within the PDF book. But when I call
prince book.html -o book.pdf
I obtain hyperlinks that refer back to the source files.
Is this a bug or am I doing anything wrong?
  1. xinclude.zip1.1 kB
mikeday
Using XInclude in this way can be a bit tricky, as the referenced document will be embedded literally where it appears, including the <html> element and all. Once it is embedded, the link to chapter2.html won't be automatically resolved to point within book.html, as that is not how XInclude works.