W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2006

RE: Schema Query re import and defines

From: Michael Kay <mike@saxonica.com>
Date: Fri, 12 May 2006 21:46:57 +0100
To: "'Kelso, Simon'" <skels@allstate.com>, <xmlschema-dev@w3.org>
Message-ID: <012801c67605$35a18650$6401a8c0@turtle>
Impossible to give a definitive answer without seeing a sample. And it might
be impossible even then, because the XML Schema spec give a lot of latitude
to implementations on this kind of thing.
 
Michael Kay
http://www.saxonica.com/


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Kelso, Simon
Sent: 10 May 2006 22:16
To: xmlschema-dev@w3.org
Subject: Schema Query re import and defines



Hi

Im not sure if I am mailing to the correct group or not.  We are having a
few problems with consistency with validation tools for XML schemas. We have
a main schema, extensions schema and an plug-in schema that combines the
two.  Descriptions on each are shown below:

Main Schema - contains data dictionary of all types, elements etc

Extensions Schema - contains business area specific types not contained in
the Main Schema - however these can be made up of types 'Imported' from the
main schema, therefore this schema imports from the Main Schema (note that
it uses IMPORT as it is a different namespace as the main schema.

The plug-in schema - which 'Redefines' types from the Main schema and
'Imports' from the Extensions Schema.

One validation tool validates our schema's ok, however one tool says that
the item being redefined is declared twice (therefore fails validation) -
this is because the plug-in schema is indirectly importing the definition
(From the Main Schema)  via the Extensions schema, while at the same time
doing a redefine from the Main Schema.  What tool is correct ? and is it
valid what we are doing ?

Thanks

Simon.
Received on Friday, 12 May 2006 20:47:27 GMT

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