This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: [XSLTalk] Not able to work up with <DIV> tag
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] [XSLTalk] Not able to work up with <DIV> tag
- From: "James MOEY" <mailinglist at sitek dot com dot au>
- Date: Tue, 19 Dec 2000 11:32:11 +1100
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@sitek.com.au
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Sachidanandam
E.K
Sent: Tuesday, December 19, 2000 10:59 PM
To: xsl-list@lists.mulberrytech.com
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