RE: [xsl] Selecting a particular attribute

Subject: RE: [xsl] Selecting a particular attribute
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sat, 12 Jul 2003 14:13:28 +0100
You can select the second attribute using @*[2], but there is no way of
predicting which attribute will come second, because the XML parser can
present them in any order.

Michael Kay


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of rajith r
> Sent: 12 July 2003 06:05
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Selecting a particular attribute
> 
> 
> Hi all
> 
> How do I select a particular attribute based on position.
> 
> For example
> 
> <row vcEmpId="2003" vcEmpName="Test" vcSal="9515"/>
> 
> I want to select the second attribute and i dont want to use 
> @vcEmpName, but 
> i want to do some thing like this @[position()=2].
> 
> Thanks & Regards
> Rajith
> 
> _________________________________________________________________
> NRIs ahoy! Want to send money home? 
> http://server1.msn.co.in/msnleads/citibankrca/citibankrca2.asp
 Do it in a 
jiffy!


 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