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

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