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 3437 - use of relative URIs in namespace declarations
Summary: use of relative URIs in namespace declarations
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-06 14:05 UTC by Andrew Eisenberg
Modified: 2006-07-06 15:05 UTC (History)
0 users

See Also:


Attachments

Description Andrew Eisenberg 2006-07-06 14:05:44 UTC
Relative URIs are used in namespace declarations in the following test cases:

namespaceDecl-17
namespaceDecl-20
namespaceDecl-21
namespaceDecl-23

No problem there, but the XML, Fragment, and Text comparators are defined using Canonicalization. Section 2.1, Data Model, of C14N says the following:

"Note: This specification supports the recent XML plenary decision to deprecate relative namespace URIs as follows: implementations of XML canonicalization MUST report an operation failure on documents containing relative namespace URIs. XML canonicalization MUST NOT be implemented with an XML parser that converts relative URIs to absolute URIs."

These test cases should be rewritten so that these relative URIs are not seerialized as part of the result. Something like the following:

declare namespace px = "http://www.example.com/abc";
let $var := <px:someElement>some context</px:someElement>
return namespace-uri-from-QName(node-name($var)) eq xs:anyURI("http://www.example.com/abc")
Comment 1 Carmelo Montanez 2006-07-06 15:05:42 UTC
Andrew:

Thanks for the observation.  Modified the test to follow a scheme as suggested.
Submitted new queries and results.

Carmelo