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

Kenneth Aitken kenneth_aitken at freenet.de
Thu Sep 30 06:52:41 PDT 2004


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



More information about the Xep-support mailing list