|
Subject: How to: numbers in html links From: Volker Turau <turau@xxxxxxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 4 Feb 1999 11:14:42 +0100 (MET) |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Venting 2, Paul Prescod | Thread | Add my own Flow Objects, parul agarwal |
| Re: Question, James Clark | Date | Re: Explorer Treeview with XSL, Guy_Murphy |
| Month |