|
Subject: RE: [xsl] [XSLTalk] Not able to work up with <DIV> tag From: "James MOEY" <mailinglist@xxxxxxxxxxxx> Date: Tue, 19 Dec 2000 11:32:11 +1100 |
I think you can do the following :
<xsl:for-each select="toppFolderOut">
<xsl:element name="div">
<xsl:attribute name="CLASS">topFolderOut</xsl:attribute>
<xsl:attribute name="ID">Metrics</xsl:attribute>
<xsl:attribute name="topfolid"><xsl:value-of
select="@id"/></xsl:attribute>
</xsl:element>
</xsl:for-each>
Is that the right way to do it ??
I am new to XSL.
from
James
james@xxxxxxxxxxxx
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Sachidanandam
E.K
Sent: Tuesday, December 19, 2000 10:59 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] [XSLTalk] Not able to work up with <DIV> tag
Hi all,
I am trying to use <DIV> tag out in the XSL sheet. I want to assign
attribute values assiciated with DVI tag. It is not working properly when I
assign it.
Below is the sample code .
<xsl:for-each select="topFolderOut">
<div CLASS="topFolderOut" ID="Metrics">
<xsl:variable name="topfolid">
<xsl:value-of select="@id"/>
</xsl:variable>
<xsl:value-of select="."/>
</div>
</xsl:for-each>
The highlight part I mean that ID I want to assign in dynamiclly from
xml string. But when I assign that ID ..it is giving runtime error. Can help
out.
Looking for your reply ASAP.
Thanks in advance
Sachi
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] [XSLTalk] Not able to work up, Sachidanandam E.K | Thread | [xsl] Implementing simple XLinks us, Adam Van Den Hoven |
| Re: [xsl] Implementing simple XLink, Eric van der Vlist | Date | Re: [xsl] Tags within tags, Mike Brown |
| Month |