Subject: Re: [xsl] finding the position of a node within a node set From: Michael Kay <mike@xxxxxxxxxxxx> Date: Sun, 26 Aug 2012 09:19:58 +0100 |
I overlooked that what you are trying to do is to get the position of the node with a given @id value, rather than a node whose identity is known ($node).
On 26/08/2012 07:49, Ihe Onwuka wrote:Assuming Xpath 2.0 take a look at the index-of function.
No, index-of() is no use because it compares nodes by value rather than by identity.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] finding the position of a, Michael Kay | Thread | Re: [xsl] finding the position of a, Wolfhart Totschnig |
Re: [xsl] finding the position of a, Michael Kay | Date | Re: [xsl] finding the position of a, Wolfhart Totschnig |
Month |