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

[Bug 3661] Custom inference rules and XPST0005

From: <bugzilla@wiggum.w3.org>
Date: Wed, 06 Sep 2006 16:25:28 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GL0DQ-0006sc-K0@wiggum.w3.org>


           Summary: Custom inference rules and XPST0005
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: frans.englich@telia.com
         QAContact: public-qt-comments@w3.org

XQuery allows arbitrary, implementation defined, inference rules, as per Static Typing Extensions. It also says that XPST0005 should be raised
on any expression that has as static type the empty sequence:

"During the analysis phase, it is a static error if the static type assigned to
an expression other than the expression () or data(()) is empty-sequence()."

When combining these two, it is possible for an implementation to raise
XPST0005 on any expression that evaluates to the empty sequence. The only limit
is on what the implementation manages to infer.

I don't know if I'm here arguing a theoretic point which in practice is
irrelevant, but this stems from member-query-test where a member indeed wanted
to raise XPST0005 in such a case(path expression missing on a direct element

Should it really be implementation defined what expressions that are "valid"?
Should XPST0005 be narrowed down to only apply on kind tests? (if so, should
probably apply both to steps and SequenceType scenarios)
Received on Wednesday, 6 September 2006 16:25:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:14 UTC