W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2008

when are duplicated type definitions allowed?

From: Tobias Koenig <tobias.koenig@trolltech.com>
Date: Tue, 18 Nov 2008 16:31:51 +0100
To: xmlschema-dev@w3.org
Message-Id: <200811181631.52007.tobias.koenig@trolltech.com>

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:27:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:09 GMT