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

[Bug 3650] Editorial: error code on element(*, test:unknownType) is ambiguous -- XPST0001/XPTY0004?

From: <bugzilla@wiggum.w3.org>
Date: Mon, 04 Sep 2006 13:42:19 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GKEiR-0003V2-B7@wiggum.w3.org>


           Summary: Editorial: error code on element(*, test:unknownType) is
                    ambiguous -- XPST0001/XPTY0004?
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: editorial
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: frans.englich@telia.com
         QAContact: public-qt-comments@w3.org

See this report on the test suite:


There's a wide agreement that the spec is unclear here, and it would be great
to have this fixed while it's possible.

This was also discussed by the task force in July, see(member only):

I disagree with my own comment in the member-query-test link that the spec
should raise XPST0051, because XPST0051 is for unknown schema types or types
that are not atomic(and the latter doesn't apply to this case).

I think issuing XTPY0004 is less sensible since it's not a type error. Either
XPST0001(unfortunate, since it's very generic) or a new code for unknown schema
types in element(). Adding a new code for that would be by the same thinking to
why XPST0051 exists. Schema Element Test explicitly mentions what to do when "the
SchemaElementTest is not found in the in-scope element declarations". It could
be sensible to do the same in Element Test.

Received on Monday, 4 September 2006 14:07:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:30 UTC