W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2003

Re: [XQuery] use of XP0008 for element/attribute names

From: Don Chamberlin <chamberl@almaden.ibm.com>
Date: Fri, 21 Nov 2003 10:04:32 -0800
To: "Priscilla Walmsley" <priscilla@walmsley.com>
Cc: public-qt-comments@w3.org, w3c-query-editors@w3.org
Message-ID: <OFC17D4F0F.07D91E7C-ON88256DE5.0062B747-88256DE5.0062C528@us.ibm.com>
Fixed by adding element and attribute names to XP0008. Thanks!
--Don Chamberlin





"Priscilla Walmsley" <priscilla@walmsley.com>
Sent by: public-qt-comments-request@w3.org
11/21/2003 07:16 AM
 
        To:     <public-qt-comments@w3.org>
        cc: 
        Subject:        [XQuery] use of XP0008 for element/attribute names



In section 2.4.3, the XQuery language draft says:

"It is a static error [err:XP0008] to use an ElementName in an ElementTest
if that name is not found in the in-scope element definitions unless a
TypeNameOrWildcard is specified." 

and

"It is a static error [err:XP0008] to use an AttributeName in an
AttributeTest if that name is not found in the in-scope attribute
definitions unless a TypeNameOrWildcard is specified."


But the error description for XP0008 reads:

"It is a static error if an expression refers to a type name, function 
name,
namespace prefix, or variable name that is not defined in the static
context."

which does not cover element or attribute names.  It seems to me that a 
new
error should be created for these 2 cases.

Thanks,
Priscilla
Received on Friday, 21 November 2003 13:04:34 GMT

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