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.
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.