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

Schema Query re import and defines

From: Kelso, Simon <skels@allstate.com>
Date: Wed, 10 May 2006 22:16:10 +0100
Message-ID: <A7F3605C579AA64B99E75DBC415CA24B18708B30@a0028-xpo0110-s.intl.ad.allstate.com>
To: <xmlschema-dev@w3.org>
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:33:15 GMT

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