This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Table of contents
- From: "Jan Zavoral" <zavoral at dashofer dot cz>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 2 Aug 2002 14:45:57 +0200
- Subject: [xsl] Table of contents
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello,
I am a new in XSL. Please I need your help. I have XML document like this:
<colors>
<chapter>
<title>Colors</title>
</chapter>
<sub-chapter >
<s-title>Red</title>
</chapter>
.
.
.
.
<sub-chapter>
<s-title>Green</title>
</chapter>
.
.
</colors>
I need to create Table of contents like this:
<h1>Colors</h1>
<h2>1.1 red</h2>
<h2>1.2 green</h2>
<h2>1.2 blue</h2>
In this xml document is many elements. I need only select
element <title> and <s-title> and display it on start of text.
Output-method is HTML.
Thanks
Jan Zavoral
---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.380 / Virová báze: 213 - datum vydání: 24.7.2002
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list