Menu

#3 Abbreviated syntax [1] does not work

open
5
2003-11-06
2003-11-06
Anonymous
No

If you provide a predicate using the abbreviated syntax
for position you will not match.

For example, given the document:

<soap:Envelope xmlns:soap="http...">
<soap:Body>
<Foo xmlns="http..."/>
</soap:Body>
</soapEnvelope>

The expressions:

/soap:Envelope[1]

and

/soap:Envelope[position()=1]

should BOTH return <soap:Envelope>, however, the first
one does NOT.

Discussion


Log in to post a comment.