[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Names of node attributes

Subject: Re: Names of node attributes
From: "KUMAR NINGASHETTY" <kningashetty@xxxxxxxxxxxxxxxx>
Date: Wed, 24 Apr 2002 15:23:42 -0400
Re:  Names of node attributes
Try this ...This should work for U ..

<xsl:for-each select="data/WELL/@*">
     <xsl:value-of select="name(.)"/>
   <br/>
 </xsl:for-each>

-kumar


>>> Sripriya.Venkataraman@xxxxxxxxxxxxxxx 04/24/02 02:46PM >>>
Hi,

I have an XML fragment like this:
<WELL WellName="A1" WellStartTime="225.30" BaselineRSI="492.87"
DipRSI="18.01" PositivePercentInhibition="16.52" PeakRSI="24.13"
NegativePercentInhibition="22.14" NoiseFactor="4.88"
MinMaxDifference="43.43" /> 

>From this, I want to use XSL and get all the attribute names separated by a
tab into a variable like this:
Well	Well Start Time	Baseline SI	Dip RSI	Positive (%) Inhibition	Peak
RSI	Negative (%) Inhibition	Noise Factor (%)	MinMax Difference

Will this work ?
<xsl:variable name="wellattributes" select="name(WELL/@*)"/>

What am I doing wrong ?

Thanks for your help.
Priya

 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.