I am evaluating PrinceXML as a solution for my company to produce software documentation for some very modular software. As the software is modular, we would also like the manuals to be modular, so we have the document setup as a number of xhtml documents which are XIncluded into a template document. We are also externally generating a table of contents, which is also being XIncluded. We are having two problems however.
Section Numbering
We cannot get the sections to number properly. The first level section number works OK, but the remaining levels (2 & 3) only seem to reset for the scope of the file the headings are located in. This results in heading numbering like:
1
1.1 (same file as 1)
1.2 (different file to 1.1)
1.3 (different file to 1.2)
2 (different file again)
2.1 (same file as 2)
2.4 (different file)
2.5 (same file as 2.5)
3 (new file)
3.1 (same file)
3.2 (same file)
3.6 (new file)
If we copy everything into one file it works OK - but that defeats the goal of its being modular and re-usable.
The style sheets I have setup (a little simplified) are:
Am I doing something wrong in this style sheet?
XIncluded Table of Contents
As mentioned above, we are attempting to XInclude a table of contents which has been generated to reference all of the headings in the document across each of the files. We are generating XHTML code like:
with CSS like:
However when the TOC is rendered all page references appear as '0'. Again this works if all of the sections are copied into one document, but not using XInclude.
Is there any way to make these cross-document references work on Price 6 rev 6?
Section Numbering
We cannot get the sections to number properly. The first level section number works OK, but the remaining levels (2 & 3) only seem to reset for the scope of the file the headings are located in. This results in heading numbering like:
1
1.1 (same file as 1)
1.2 (different file to 1.1)
1.3 (different file to 1.2)
2 (different file again)
2.1 (same file as 2)
2.4 (different file)
2.5 (same file as 2.5)
3 (new file)
3.1 (same file)
3.2 (same file)
3.6 (new file)
If we copy everything into one file it works OK - but that defeats the goal of its being modular and re-usable.
The style sheets I have setup (a little simplified) are:
h1
{
counter-increment: head1;
counter-reset: head2 0 head3 0;
page-break-before:always;
page-break-after:avoid;
string-set: section-title content();
}
h2
{
counter-reset: head3;
counter-increment: head2;
page-break-after:avoid;
}
h3
{
page-break-after:avoid;
counter-increment: head3;
}
h4
{
page-break-after:avoid;
}
h3::before
{
content: counter(head1)"."counter(head2)"."counter(head3)" "
}
h2::before
{
content: counter(head1)"."counter(head2)" "
}
h1::before
{
content: counter(head1)" "
}
Am I doing something wrong in this style sheet?
XIncluded Table of Contents
As mentioned above, we are attempting to XInclude a table of contents which has been generated to reference all of the headings in the document across each of the files. We are generating XHTML code like:
<h1 class="unnumbered">Contents</h1><UL>
<li class="toc1"><a href="C:\html\INTRODUCTION.html#Introduction">Introduction</a></li>
<UL>
<li class="toc2"><a href="C:\html\ABOUT.html#AboutRa">About The Software</a></li>
<li class="toc2"><a href="C:\html\FEATURES.html#RaFeatures">Features</a></li>
<li class="toc2"><a href="C:\html\CONVENTIONS.html#Conventions">Conventions</a></li>
<li class="toc2"><a href="C:\html\GETTING_HELP.html#GettingHelp">Getting Help</a></li>
<li class="toc2"><a href="C:\html\OVERVIEW.html#Overview">Overview</a></li>
</UL>
<li class="toc1"><a href="C:\html\THE_INTERFACE.html#Interface">
The Interface
</a></li>
with CSS like:
li.toc1, li.toc1 a[href]
{
margin-left:0cm;
list-style: none;
color: #000000;
text-decoration: none;
font-weight: bold;
}
li.toc1 a[href]::after
{
content: leader(".") target-counter(attr(href), page)
}
However when the TOC is rendered all page references appear as '0'. Again this works if all of the sections are copied into one document, but not using XInclude.
Is there any way to make these cross-document references work on Price 6 rev 6?