|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: [XSLTalk] Not able to work up with <DIV> tag
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: [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
|
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
|

Cart








