Abbreviated syntax [1] does not work
Brought to you by:
marser
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.