This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE:
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] RE:
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Tue, 22 May 2001 14:30:49 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Seema,
For starters I wouldn't use for-each.
But anyway
<a href="XMLShowLevel?num={count(preceding-sibling::volume)}"> <xsl:value-of
select ="title"/></a>
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
>-----Original Message-----
>From: owner-xsl-list@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Seema Kumar
>Sent: 23 May 2001 00:21
>To: XSL-List@lists.mulberrytech.com
>Subject:
>
>
>Hi All !!
>
>I am new to XSL and XML and am facing the following problem. I have an XML
>document which is a Table of Contents and in my application I need to show
>each level of the TOC as a different page.
>For eg: the first page will contain:
>Vol 1
>Vol 2..etc
>Now if I click on Vol1 it should show me a fresh page containing the
>contents of Vol 1 alone.
>
>I do the display handling using a servlet. I am however facing a
>difficulty while inserting the links in the xml document.
>At present I insert the link by including the following in the xsl :
>
><xsl:for-each select="volume">
><a href="XMLShowLevel>"> <xsl:value-of select ="title"/></a>
>
>
>However, Inorder to specify which level to display I need to specify a
>parameter, which would be the attribute "num" of the chapter tag. In
>normal cases the servlet would be called as XMLShowLevel?num=1
>How do I specify this in the XSL ?
>Please help as this is urgent.
>
>Thanks in advance
>Seema
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list