|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: attribute position help !!!
Hi, > Is there any function allowing to know the position of a > given attribute ? No. > example: > is it wright to write : > -------------------------------------------------------------------- > <xsl:for-each select="element"> > > <xsl:if test="name(@[2])='type'"> > > <xsl:text> the postion of the type attribute is 2 No. Did you quess the syntax? The thing is, attributes don't have positions, they're unordered in the XPath data model. They might have an order in the XML lexical representation, but in the XPath data model they're unordered. Cheers, Jarno - <http://www.synthetic.org/play.html> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








