|
Subject: [xsl] RE: From: "Chris Bayes" <Chris@xxxxxxxxxxx> Date: Tue, 22 May 2001 14:30:49 +0100 |
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@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Seema Kumar
>Sent: 23 May 2001 00:21
>To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
>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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [no subject], Seema Kumar | Thread | [xsl] The Mike Kay fan club..., Tim Watts |
| [xsl] Fwd: Re: unable to dynamicall, bharat chintapally | Date | RE: [xsl] Control over html output, Andy Joslin |
| Month |