Re: [xep-support] Creating a Table of Contents from an HTML file being transformed using XSL to FO

From: Kenneth Aitken (kenneth_aitken@freenet.de)
Date: Thu Sep 30 2004 - 06:52:41 PDT

  • Next message: Alexander Peshkov: "Re[2]: [xep-support] initial page number"

    Hi Werner

    That line did the trick! Thank you very much for your support.

    Now I can generate a 3-level table of contents with h1, h2 and h3, when I insert two nested levels of <div>, one each for h1 and h2.

    Greetings,

    Kenneth

    *********** REPLY SEPARATOR ***********

    On 30.09.2004 at 10:21 Werner DonnÚ wrote:

    >Kenneth,
    >
    >On the spot where you want to generate the table of contents you can do
    >
    ><xsl:apply-templates select="//*[namespace-uri() =
    >'http://www.w3.org/1999/xhtml' and
    > (local-name() = 'h1' or local-name() = 'h2' or local-name() = 'h3')]"
    >mode="toc"/>
    >
    >This will encounter the headings in document order, meaning you can write a
    >template for each level that depends on nothing else. It is also
    >independent
    >of the level of nesting.
    >
    >Werner.
    >

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Thu Sep 30 2004 - 07:10:34 PDT