Subject: Re: XPath2 preceding / following axis and attributes
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 10 Jan 2006 13:37:31 +1100
|
On 1/10/06, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:
> In fact, it is easy to see that the following two XPath expressions
> are equivalent:
>
> someElement/@someAttribute/following::someNodeTest
>
> and
>
> someElement/following::someNodeTest
>
if the element someElement has an attribute someAttribute.
To state this more precisely, the equivalence should be re-written as:
In fact, it is easy to see that the following two XPath expressions
are equivalent:
someElement/@someAttribute/following::someNodeTest
and
someElement/@someAttribute/../following::someNodeTest
--
Cheers,
Dimitre Novatchev
---------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all.
|