This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Names of node attributes
- From: Sripriya Venkataraman <Sripriya dot Venkataraman at calipertech dot com>
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Wed, 24 Apr 2002 11:46:55 -0700
- Subject: [xsl] Names of node attributes
- Reply-to: xsl-list at lists dot mulberrytech dot com
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