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

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

From: Michael Kay <mhk@mhk.me.uk>
Date: Wed, 4 Aug 2004 09:14:14 +0100
To: "'David Carlisle'" <davidc@nag.co.uk>, <chamberl@almaden.ibm.com>
Cc: <public-qt-comments@w3.org>
Message-Id: <20040804081505.82BC1A0FE8@frink.w3.org>

> why can't ForwardStep | ReverseStep be moved into PrimaryExpression so
> that AxisStep can be deleted and filterexpression unified with
> stepexpression
>  that would unify all uses of [...] into one place 

The main reason is that there is a semantic distinction: the old problem of
the difference between (ancestor::*)[1] and ancestor::*[1]. Specifically,
position() is computed differently in the two different kinds of predicate.
We therefore need a syntactic way of distinguishing the two kinds of
predicate, so that the syntactic difference can steer the choice of
semantics.

Michael Kay
Received on Wednesday, 4 August 2004 04:15:05 GMT

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