W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2003

RE: Inability of location steps to support multiple axes

From: Emerson <emerson@harvestman.net>
Date: Wed, 10 Sep 2003 12:52:19 +0100
To: <public-qt-comments@w3.org>, <Michael.Kay@softwareag.com>
Message-ID: <000801c37791$fdbad8f0$b03e353e@genesis>


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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:01 GMT