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

RE:

Subject: RE:
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Tue, 22 May 2001 14:30:49 +0100
 RE:
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
  • [no subject]
    • Seema Kumar - Tue, 22 May 2001 08:44:17 -0400 (EDT)
      • Chris Bayes - Tue, 22 May 2001 09:28:57 -0400 (EDT) <=

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.