Reece Dunn wrote:
Eric Niebler wrote:

I have a bunch of XML files that I xi:include from a top-level XML file. The resulting table of contents looks like this:

Doc 1
Doc 2
Doc 3
Doc 4
Doc 5
Doc 6

But I'd like it to look like this:

Doc 1
  Doc 2
    Doc 3
    Doc 4
  Doc 5
Doc 6

How do I do that?


Where are you placing the xi:include commands? You would need to place them in the section they are associated with, e.g.:

doc.xml
  <library><title>Lib</title>
     <xi:include xref = "doc1.xml"/>
     <xi:include xref = "doc6.xml"/>
  </library>

doc1.xml
  <section><title>Doc 1</title>
     <xi:include xref = "doc2.xml"/>
  </section>

Regards,
Reece


Do you mean xi:include href ?
-----------------------^^^^

Yes, I tried that. In my original mail, I said:

    If I change Doc 1 to xi:include Doc 2 and Doc 5,
    and change Doc 2 to xi:include Doc 3 and Doc 4,
    I end up with one big long HTML page instead of
    the 6 separate and cross-linked pages I want

I have since discovered that this behavior can be configured with the chunk.section.depth XSL parameter. And the business with 3rd level sections not showing up in the TOC can be controlled by setting both toc.max.depth and toc.section.depth to 3.

All is not roses, however. If I do all this, my user's guide is chunked the way I want, but these parameters also affect the way the doxygen-generated reference section is chunked, and I don't want to change that. :-(

So now I'm experimenting with modifying the chunking behavior by custimizing the "chunk" template in boostbook/xsl/html.xsl. What a pain! Is there no other way?


-- Eric Niebler Boost Consulting www.boost-consulting.com


------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Boost-docs mailing list [EMAIL PROTECTED] Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to