RE: [xsl] Problem with attributes

Subject: RE: [xsl] Problem with attributes
From: "Tim Watts" <timw@xxxxxxx>
Date: Wed, 23 May 2001 16:12:06 +1000

Could you show us a bit of your xml? 
I'm presuming it is a bit like...
  <chapter num="1">
  <chapter num="2">
  <chapter num="3">
Is that right?

I can't see why 
<xsl:template match="book">
  <xsl:for-each select="chapter">
    <a href="XMLShowLevel?num={@num}"><xsl:value-of select="title"/></a>
wouldn't work in that case.


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Seema Kumar
Sent: Thursday, 24 May 2001 2:19 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Problem with attributes

Hi all !

I had posted a similar question yesterday, but failed to get a proper
solution. I have the following lines inserted in my xsl :
<xsl:for-each select="chapter">
<a href="XMLShowLevel?num={@num} "><xsl:value-of select="title"/></a>

However, when the servlet XMLShowLevel is called it refuses to get the
value of the attribute num as parameter. It just gets the string "{@num}"
and not the value. Could somebody help me with this ?

Also could anyone provide me with any sample implementation of a Table of
Contents where it is viewed level by level ?

Thanks in advance

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread