Hello,

> In your document, the <btw> element node is the first node in 
> document order.  Perhaps you are thinking this is an 
> existential quantification test (meaning that _some_ node in 
> the node set has the name 'u'), or perhaps you're thinking 
> that because preceding-sibling is a reverse axis, that <u> is 
> the first element node in the node-set?  Neither is the case. 
>  Here are some variations you can try which might help to 
> explain this more clearly:
> 
>    "//child[name(preceding-sibling::*)='btw']"
> 
>    "//child[name(preceding-sibling::*[1])='u']"
> 
>    "//child[preceding-sibling::u]"

Many thanks for your detailed explanations Dave. I had wrong idea about
the meaning of the Xpath expression mentioned.

> I have no idea what XSLT or XPath processor you're using with 
> XMLSpy, but I tested with Xalan 1.3+, Saxon 6.5.1, and MSXSL 
> 3.0 and all produce the same result.  Perhaps this is a bug in XMLSpy.

Yes, this seems to be a bug in XMLSpy.

BR
--Sergey Petrunia

Reply via email to