xsl-list
[Top] [All Lists]

Re: XPath2 preceding / following axis and attributes

2006-01-09 19:37:31
On 1/10/06, Dimitre Novatchev <dnovatchev(_at_)gmail(_dot_)com> 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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--