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

[Bug 5804] [XQuery] Version numbers in XQuery version declarations

From: <bugzilla@wiggum.w3.org>
Date: Mon, 04 Aug 2008 14:19:17 +0000
To: public-qt-comments@w3.org
Message-Id: <E1KQ0u5-0000f1-46@wiggum.w3.org>

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





--- Comment #1 from John Snelson <john.snelson@oracle.com>  2008-08-04 14:19:16 ---
The results of working group discussion on this subject lead to believe that:

1) An XQuery 1.0 processor should reject a query labeled as version "1.1".
2) An XQuery processor (any version) should attempt to process an XQuery whose
version is not given.
3) An XQuery 1.1 processor should either reject a query labeled as version
"1.0", or fall back to using an XQuery 1.0 processor to process the query.

In addition:

4) We should define the terms "XQuery 1.0 processor" and "XQuery 1.1
processor".
5) We should make it easier to not declare the version of the query, by
allowing an encoding declaration without a version declaration.

To this end I therefore propose the following changes to the XQuery 1.1
specification:

i) At the end of section 1 (or in section 4.1?), add:

<new>
[Definition: An XQuery 1.1 processor is capable of processing a query according
to the XQuery 1.1 specification.]
[Definition: An XQuery 1.0 processor is capable of processing a query according
to the XQuery 1.0 specification.]
</new>

ii) In section 4.1, change the grammar for VersionDecl to:

VersionDecl ::= "xquery" (("encoding" StringLiteral) | ("version" StringLiteral
("encoding" StringLiteral)?)) Separator

iii) In section 4.1, change the first paragraph to:

<new>
[Definition: Any module may contain a version declaration. If present, the
version declaration occurs at the beginning of the module and can identify the
applicable XQuery syntax and semantics for the module, as well as it's
encoding.] The version number "1.0" indicates a requirement that the module
must be processed by an XQuery 1.0 processor - similarly the version number
"1.1" indicates a requirement that the module must be processed by an XQuery
1.1 processor. If the version declaration is not present or the version is not
included in the declaration, an XQuery 1.1 processor assumes a version of
"1.1". If an XQuery 1.1 processor processes a module labeled with a version
other than "1.1, it must either raise a static error [err:XQST0031], or attempt
to process the module with an XQuery 1.0 processor. It is the intent of the
XQuery working group to give later versions of this specification numbers other
than "1.0" and "1.1", but this intent does not indicate a commitment to produce
any future versions of XQuery, nor if any are produced, to use any particular
numbering scheme.
</new>


-- 
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:19:52 GMT

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