RE: [xsl] attribute position help !!!

Subject: RE: [xsl] attribute position help !!!
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 14 Oct 2003 17:46:23 +0300

> Is there any function allowing to know the position of a 
> given attribute ?


> 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.


Jarno - <>

 XSL-List info and archive:

Current Thread