W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2002

RE: restricted use of Dot and DotDot

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Fri, 25 Jan 2002 22:14:26 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679BBB@daemsg02.software-ag.de>
To: "'Michael Dyck'" <MichaelDyck@shaw.ca>, www-xml-query-comments@w3.org, www-xpath-comments@w3.org
> 
> Is there any reason why the syntax disallows (e.g.)
>                 ..[whatever]
> but allows
>               (..)[whatever]
> and
>     parent::node()[whatever]
> ?
> 
> That is, why is DotDot an entire step (with no opportunity for
> StepQualifiers), rather than an alternative to 'Axis NodeTest'?
> 
> Ditto all the above for Dot.
> 

At one stage our syntax did allow .[predicate] and ..[predicate] but for
some reason it was reorganised to disallow these constructs, I think as an
accidental side-effect. My view is therefore that this is a bug, but I would
need to check with the parsing experts...

Mike Kay
Received on Friday, 25 January 2002 16:14:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:54 GMT