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

How to: numbers in html links

Subject: How to: numbers in html links
From: Volker Turau <turau@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Feb 1999 11:14:42 +0100 (MET)
numbers in html
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.