W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2010

[Bug 10696] Tests that should allow XQST0022

From: <bugzilla@jessica.w3.org>
Date: Tue, 28 Sep 2010 14:26:33 +0000
To: public-qt-comments@w3.org
Message-Id: <E1P0b8b-0003hJ-VZ@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10696

Benjamin Nguyen <benjie.nguyen@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |benjie.nguyen@gmail.com

--- Comment #1 from Benjamin Nguyen <benjie.nguyen@gmail.com> 2010-09-28 14:26:33 UTC ---
To be honnest I'm not sure about the exact goal of the test, since it reads
"Use an inproperly enclosed expression inside an namespace declaration".

The spec says : If the DirAttributeValue  contains an EnclosedExpr, a static
error is raised [err:XQST0022]

Looking at example K2-DirectConElemNamespace-44.xq : /www.example.com/{ my
feeling is that this expression is not valid per the grammar and therefore is
err:XQST0003. The DirAttributeValue does not contain an EnclosedExpr since it
is defined by EnclosedExpr ::= "{" Expr  "}", and such a pattern cannot be
found. I believe the parser should also be looking for {{ so I'm not sure why
it would decide off the bat that { is an EnclosedExpr.  

One could also argue that { is only part of the unwise URI characters, so could
be part of the uri (I'm not a URI expert, so maybe I'm wrong here). Maybe the
example(s) should be changed though because I don't really understand what they
try to acheive.

-- 
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 Tuesday, 28 September 2010 14:26:36 GMT

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