[Bug 3485] [XQuery] relative URILiteral

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

           Summary: [XQuery] relative URILiteral
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: davidc@nag.co.uk
         QAContact: public-qt-comments@w3.org


The XQuery spec seems to be inconsistemt on whether URILiteral terms may be
relative.

The clause is defined in section 2.4.5 which says

    However, an implementation MAY raise a static error [err:XQST0046]
    ... or if it is a string that represents a "relative reference"
    as defined in [RFC3986].

So it would appear that a relative URI is an error that may be reported as
XQST0046, however at least two places where URILiteral terms are used give
explict non-error behaviour for relative URI.


3.8.3
     If an orderspec specifies a collation by a relative URI,
     that relative URI is resolved to an absolute URI using
     the base URI in the static context.


4.4
     If a default collation declaration specifies a collation
     by a relative URI, that relative URI is resolved to an
     absolute URI using the base URI in the static context. 

Perhaps 2.4.5 should be ammended to say that XQST0046
may be raised (just) if the URI Literal is not an absolute URI after resolving
(if necessary) against the base URI in the static context.


Note this affects several test suite tests, see bug #3447

David

Received on Tuesday, 18 July 2006 21:03:22 UTC