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

Re: [XQuery] A.2.2 Lexical Rules: pattern conflicts

From: Michael Dyck <jmdyck@ibiblio.org>
Date: Wed, 28 Jan 2004 17:50:56 -0800
To: public-qt-comments@w3.org
Message-id: <40186700.E54198AA@ibiblio.org>

scott_boag@us.ibm.com wrote:
> 
> (qt-2004Jan0241-02)
> > KINDTEST:
> > conflict between QName and the keywords "context" & "global".
> 
> This has been classified as an error and has been fixed by removing
> "context" and "global" from the KINDTEST state.

What? Then how does it handle something like this?

    validate strict context type(po:Address) { <zip>90952</zip> }

After "validate strict", the lexer is in KINDTEST. If you don't have a
transition on "context", the lexer will have to read "context" as a
QName, which will lead to a (bogus) syntax error.

> (qt-2004Jan0241-04)
> > EXT_KEY:
> > conflict between QName and the keywords "pragma" & "extension".
> 
> These have been classified as errors and have been fixed by some general
> rework of the extension EBNF and the creation of a EXT_CONTENT state.

(It would  be better if the EXT_CONTENT state were placed after the
EXT_NAME state.)

> Thank you for raising the comment.  I would be grateful if you would
> confirm that this provides an adequate resolution.

Apart from the KINDTEST problem, yes.

-Michael Dyck
Received on Wednesday, 28 January 2004 22:53:04 GMT

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