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 4229 - Schema: Importing with empty schemaLocation
Summary: Schema: Importing with empty schemaLocation
Status: RESOLVED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: Metadata update 2010-07-06
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-15 21:34 UTC by Arthur De Magalhaes
Modified: 2010-07-06 10:56 UTC (History)
2 users (show)

See Also:


Attachments

Description Arthur De Magalhaes 2007-01-15 21:34:07 UTC
This bug applies to the following testcase:
msData/schema/schZ015.xsd

The empty schemaLocation attribute means that the document is trying to <import> itself.  Therefore this testcase is not valid, and an error should be thrown.
Comment 1 Zafar Abbas 2007-02-02 19:47:37 UTC
Agreed that this test should not be published as a compliance suite. We are following up with the WG to determine the process of updating the test suite.
Comment 2 Michael Kay 2010-03-26 15:55:48 UTC
Noted that although the spec says:

"It is not an error for the application schema reference strategy to fail."

In this case the strategy might well succeed (treating "" as a same-document reference) and access a schema document whose target namespace is the wrong namespace, which would be an error.

So it all depends on how the schema-location is resolved, which is implementation-dependent.
Comment 3 David Ezell 2010-04-02 15:35:11 UTC
WG decided on 2010-03-26 to mark this "implementation define".