|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How to: numbers in html links
Hi,
I am currently developing a xsl stylesheet (xml --> html) and I have the
following problem. Consider the DTD:
<!ELEMENT content (section*)>
<!ELEMENT section (title, content)>
<!ELEMENT title (#PCDATA) >
<!ELEMENT content (#PCDATA) >
Now I want to to generate an index with links to the sections:
<a href="#section4">Title of Section 4 </a>
and in the contents part I want to have
<a name="section4"/a>
4. Title of Section 4
I know how to do the numbering, but I do not know how to generate the
links <a href="#section4"> and <a name="section4"/a>, especially how to
generate strings like section4 as the value of an attribute (i.e. of <a>).
Is it true, that the content of xsl:attribute can only be text? How can I
use xsl numbers to define attributes?
Any help is welcome!
volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








