[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: when are duplicated type definitions allowed?

From: Michael Kay <mike@saxonica.com>
Date: Tue, 18 Nov 2008 15:56:08 -0000
To: "'Tobias Koenig'" <tobias.koenig@trolltech.com>, <xmlschema-dev@w3.org>
Message-ID: <5579B586417E4ABDBC87772B987EE284@Sealion>
RE: when are duplicated type definitions allowed?

These things are currently very poorly defined: in fact the spec says as
much, it explicitly acknowledges that component identity is not fully
defined.

I think a number of products adopt the interpretation that components are
identical (and duplicates eliminated) if they are loaded from the same
absolute URL. Others would claim that the languuage of the spec invites you
to treat components as identical using some kind of "deep equality" or
"indistinguishability" test.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Tobias Koenig
> Sent: 18 November 2008 15:32
> To: xmlschema-dev@w3.org
> Subject: when are duplicated type definitions allowed?
> 
> 
> Hej,
> 
> I can't find any clear explanation in the schema 1.1 (1.0) 
> spec how to handle multiple imports of the same schema 
> through different documents.
> 
> e.g. A imports B and C (with different namespaces)
>        B imports D 
>        C imports D
> 				(B and C import D with the same 
> namespace)
> 
> so all the types/elements/attributes from D appear suddenly 
> twice in the target schema... is that allowed?
> 
> Another situation: let's have the same type/element/attribute 
> definitions in two schema files with different filenames 
> (URIs) What should happen if a third schema includes (or 
> imports) these two files?
> 
> Thanks in advance
> 
> Ciao,
> Tobias
> 
Received on Tuesday, 18 November 2008 15:56:50 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.