[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Approaches to generating a table of contents?

Subject: RE: Approaches to generating a table of contents?
From: Ed Nixon <ed.nixon@xxxxxxxxxxxxxxxxx>
Date: Fri, 30 Oct 1998 14:50:07 -0500
generating a toc
Are you looking for a table of contents in the conventional sense, with page 
numbers? Or, are you wanting to create an HTML TOC file (of H2s, say) with 
anchors pointing to the links in the main document?

If the later, have you tried a variation on the <xsl:process select="H2"> 
operator. I think there is some example XSL in the InDelv package documentation 
that might be useful. You can find them and their kind of interesting software 
at: http://www.indelv.com/

-----Original Message-----
From:	Denis_Haskin@xxxxxxxxxx [SMTP:Denis_Haskin@xxxxxxxxxx]
Sent:	Friday, October 30, 1998 1:41 PM
To:	XSL-List@xxxxxxxxxxxxxxxx
Subject:	Q: Approaches to generating a table of contents?

[I'll post this here before cross-posting to XML-L.  This has also been
posted to comp.text.xml.]

I am moving some documentation into XML from HTML.  It makes a lot of
sense, for reasons I won't go into here.

For publishing, my thought had been to use an XSL processor to generate
HTML, and for the most part I haven't encountered any major stumbling
blocks but one:

I would really like to be able to generate a simple (i.e. non-hierarchical)
table of contents from the XML structure, but I'm having a devil of a time
figuring out a straightforward way of doing it.

It looks like one way to have done this was with modes, but that's
currently not in XSL (although under discussion, it seems).

Or would this be done in the formatting objects side of XSL (which I
confess I don't fully understand and in fact isn't supported by XT, which
is what I'm using)?

Am I trying to use XSL before it'sf fully cooked?

In that case, alternatively, it appears this could be done before XSL
processing with an XML processing instruction.  I guess I would need to
write a table-of-contents PI for XP, if that's what I continue to use.  Or
is there an XML processor that already has such a thing?

Much thanks for any tips, pointers, etc.

Denis Haskin

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.