This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19861 - [QT3TS] @uri of <source> elements
Summary: [QT3TS] @uri of <source> elements
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 14:50 UTC by Tim Mills
Modified: 2013-01-02 20:04 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2012-11-05 14:50:38 UTC
The "uri" attribute for <source> elements should be absolute (according to the documentation). The following do not satisfy this rule.

test suite bug ?  URI id/SpaceBracket.xml should be absolute
test suite bug ?  URI id/HighUnicode.xml should be absolute
test suite bug ?  URI id/HighUnicode2.xml should be absolute
test suite bug ?  URI id/BCisInvalid.xml should be absolute
test suite bug ?  URI id/InvalidUmlaut.xml should be absolute
test suite bug ?  URI id/NamespaceSuppliedInternally.xml should be absolute
test suite bug ?  URI id/XMLIdDuplicated.xml should be absolute
test suite bug ?  URI id/InvalidXMLId.xml should be absolute
test suite bug ?  URI id/Books2.xml should be absolute
test suite bug ?  URI id/QObject.xml should be absolute
test suite bug ?  URI id/0x010D.xml should be absolute
test suite bug ?  URI id/builtinEntities.xml should be absolute
test suite bug ?  URI id/XMLIdWhitespace.xml should be absolute
test suite bug ?  URI id/XMLIdDuplicated.xml should be absolute
test suite bug ?  URI id/InvalidXMLId.xml should be absolute
Comment 1 Michael Kay 2012-11-08 08:52:18 UTC
I'm inclined to push back on this.

If the URIs for documents accessed using doc() are always absolute, then how do we test that doc() accepts a relative URI? I think we should say instead that if the URI is relative, then it's interpreted as being relative to the base URI of the XML catalog file.
Comment 2 Tim Mills 2012-11-08 09:31:01 UTC
An acceptable fix would be to change the documentation.  

The only reason our test driver reports this problem is because the documentation says to expect absolute URIs.
Comment 3 O'Neil Delpratt 2013-01-02 13:00:30 UTC
I suggest to change the documentation to accept either relative and absolute URI.
Comment 4 Michael Kay 2013-01-02 20:04:06 UTC
The documentation has been updated as suggested.