[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

Subject: RE: [XSLTalk] Not able to work up with <DIV> tag
From: "James MOEY" <mailinglist@xxxxxxxxxxxx>
Date: Tue, 19 Dec 2000 11:32:11 +1100
assign a name to div
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.