On 1/10/06, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
I think the results here are correct. The text node "205" is a descendant of
the element containing the attribute, but it's not a descendant of the
attribute, so it is included in the result.
Or have I misunderstood?
You're right -- and this particular case is indeed quite tricky --
thanks to Soren Kuula for raising the question.
So, as a next attempt, are the following two XPath expressions equivalent:
someElement/@someAttribute/following::someNodeTest
and
someElement/@someAttribute/../following::someNodeTest
|
someElement/@someAttribute/../descendant::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>
--~--