RE: Inability of location steps to support multiple axes

Michael, could you point me to the grammar where this is allowable in
Xpath 2.0

I can see no such derivation:

http://www.w3.org/TR/xpath20/#doc-StepExpr






>> So the above example would become:
>> 
>> "parent::a/(following-sibling::* | preceding-sibling::*)//text()"
>> 
>> Which in my opinion is logically much more concise...
>> 
>> It could be that I am missing something, but I believe your 
>> proposal is possible in XPath 2.0. 
>
>Correct, this expression is valid in XPath 2.0. 
>Michael Kay

Received on Wednesday, 10 September 2003 07:55:57 UTC