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

[Bug 3485] [XQuery] relative URILiteral

From: <bugzilla@wiggum.w3.org>
Date: Tue, 18 Jul 2006 21:03:15 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1G2wip-0004Nd-M5@wiggum.w3.org>

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

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