W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2004

Re: [Xquery] 3.3.2 Filter Expressions (editorial comment on example)

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 3 Aug 2004 23:46:56 +0100
Message-Id: <200408032246.XAA05426@penguin.nag.co.uk>
To: public-qt-comments@w3.org


answering my own question

> why can't ForwardStep | ReverseStep be moved into PrimaryExpression so


I suppose it's because you want the grammar to not only specify the
syntactically legal strings but also impart some semantics and
precedence order, ie you want to reflect that not only are
ancestor::foo[1] and (ancestor::foo)[1] 
both legal, but that they mean something different.
one being an axis step and t'other a filter expression.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Received on Tuesday, 3 August 2004 18:47:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:20 UTC