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

[Bug 5727] [XQuery] Syntax ambiguities with leading "/"

From: <bugzilla@wiggum.w3.org>
Date: Mon, 04 Aug 2008 14:42:00 +0000
To: public-qt-comments@w3.org
Message-Id: <E1KQ1G4-0006XG-A3@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5727





--- Comment #9 from Michael Kay <mike@saxonica.com>  2008-08-04 14:41:59 ---
(1) The proposal in comment #8 does not address the problem that if these rules
are adopted,

/ < 5

now parses in XPath but not in XQuery. Perhaps that's acceptable.

(2) What about

/ instance of document-node(schema-element(x))

Are we saying this must be reported as a syntax error? I might be reluctant to
implement that because I don't want to invalidate existing stylesheets - it's a
perfectly reasonable thing to write, although I agree it's arguably illegal
already (depends on what you think "keyword" means - I allow it because my
parser recognizes "instance of" as a single token, which cannot appear at the
start of a RelativePathExpr).

Michael Kay


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 4 August 2008 14:42:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:53 GMT