[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|