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 5380 - Clarify XSD vs. xsi:schemaLocation attribute
Summary: Clarify XSD vs. xsi:schemaLocation attribute
Status: RESOLVED FIXED
Alias: None
Product: SML
Classification: Unclassified
Component: Interchange Format (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: LC
Assignee: Kumar Pandit
QA Contact: SML Working Group discussion list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-16 18:15 UTC by Kirk Wilson
Modified: 2008-01-22 12:47 UTC (History)
0 users

See Also:


Attachments

Description Kirk Wilson 2008-01-16 18:15:43 UTC
Section 4: there is reference to xsi:schemaLocation occurring in Schema documents.  I believe this is permitted, but this use of the schemaLocation attribute is rare and is not referred to again in the text.  Section 4 should more explicitly recognize the distinction between the xsi:schemaLocation attributes that typically occurs in model instance documents (but must be address wherever it occurs) vs. the schemaLocation attribute in the XSDL <import> (which also has to be addressed).  In particular, section 5.3.3 should address both the XSD schemaLocation attribute, which it does, and the second parameter of the xsi:schemaLocation attribute.
Comment 1 Sandy Gao 2008-01-16 20:07:00 UTC
> Section 4: there is reference to xsi:schemaLocation occurring in Schema
> documents. 

I agree this sentence (in 4.0) is not optimal. Suggest to remove "xsi:". (Just went back and checked my proposal for this section, and it didn't have "xsi:". Some kind of copy/paste error must have happened when the proposal was incorporated.)

> Section 4 should more explicitly recognize the distinction between the
> xsi:schemaLocation attributes that typically occurs in model instance
> documents (but must be address wherever it occurs)

They are not required to be addressed. See the first bullet 3 in section 4.3.2 of http://www.w3.org/TR/xmlschema-1/

> vs. the schemaLocation attribute in the XSDL <import> (which also has to be
> addressed).

These are not required to be addressed either. See "Schema Document Location Strategy" in section 4.3.2 of http://www.w3.org/TR/xmlschema-1/.

I agree that different schema location cases need to be distinguished. This is implicitly covered in section 5.3.3 and 5.5, where xsi:schemaLocation and schemaLocation on <xs:import> are ignored (only schemaLocation on <xs:include> and <xs:redefine> are used).

Don't feel strongly about whether section 4 should give an informal statement about this situation.

> In particular, section 5.3.3 should address ... the second parameter of the
> xsi:schemaLocation attribute.

I think the decision we made was to ignore xsi:schemaLocation attributes (and schemaLocation on <xs:import> elements), and use "namespace matching" to locate relevant schema documents. One reason we chose to do this is to improve inter-op, because how these attributes are handled almost completely depends on the schema processor.

Are you suggesting that we should reopen that topic?
Comment 2 Virginia Smith 2008-01-17 19:19:28 UTC
In response to the final question in comment #1 - Kirk's answer is 'no'.
Comment 3 Kumar Pandit 2008-01-22 12:45:59 UTC
updated section 4 to use the following sentence:

Less obvious are such references as certain schemaLocation attributes in schema documents and xsi:schemaLocation attributes in instance documents. Section 4.4 Schema Document Bindings defines how schemaLocation is processed in these cases.