|
Subject: RE: [xsl] Problem with attributes From: "Student1 ASCO-ELK (RBJE/ELK)" <Student1.ASCO-ELK@xxxxxxxxxxxx> Date: Wed, 23 May 2001 08:06:00 +0200 |
hi
just try
<xsl:for-each select="chapter">
<a>
<xsl:attribute name="href">
XMLShowLevel?num=<xsl:value-of select="@num" />
</xsl:attribute>
</a>
</xsl:for-each>
i am not sure if this {@num} works properly in every case, but the solution
above
should work fine.
regards goose
-----Original Message-----
From: Seema Kumar [mailto:2kseema@xxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, May 24, 2001 1: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
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 -> |
|---|---|---|
| [xsl] Re:Re:An XSLT equivalent of S, Yang | Thread | Re: [xsl] Problem with attributes, Seema |
| Re: [xsl] number of digits, SoftLiban ITANI Moha | Date | RE: [xsl] Problem with attributes, Tim Watts |
| Month |