Forum How do I...?

Table of contents for multiple URL/documents

bookdev
Could you please be so kind as to let me know if Prince can calculate page numbers for a table of contents spanning multiple URL/documents, if you don't mind?

For example:
Prince toc.htm 1.htm 2.htm -o out.pdf

...where toc.htm contains the style sheet from http://www.princexml.com/samples/magic.xhtml and the heading of 1.htm has <div id="1"> and the heading of 2.htm has <div id="2"> which are referrenced in toc.htm as:
<div id="toc">
<h3>Table of contents</h3>
<ul>
<li><a href="#1">One</a></li>
<li><a href="#2">Two</a></li>
</ul>
</div>

When I try this, all entries in the Table of Contents display as "0" whereas the same code works in your magic.xhtml where headings are in the same document as the table of contents.
mikeday
Links to other documents need to include the filename as well, eg. "doc1.html#chapter1".
jim_albright
Is that true if you use XInclude?

Jim Albright
Wycliffe Bible Translators

bookdev
Thanks, Mike.