W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2002

Re: xs:import question

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 2 Apr 2002 16:55:10 +0100
Message-ID: <530108864.20020402165510@jenitennison.com>
To: Sripriya Venkataraman <vsripriya@yahoo.com>
CC: xmlschema-dev@w3.org
Hi Priya,

> I have four schemas A,B,C and D. All of them define a particular
> element, say, Element1. The definition of Element1 is different in
> all the 4 schemas.
> Now I want to create a new schema E. This schema should contain
> multiple occurences of Element1 from any one schema i.e. it should
> contain multiple Element1 from A or multiple Element1 from B or
> multiple Element1 from C. But it should never mix them.
> How do I write schema E ? Can somebody help ?

In general, the physical representation of a schema (e.g. how many
document you use for it, whether you use 'xs' as the prefix or 'xsd')
doesn't matter to a schema validator, so I don't think you're going to
be able to do what you want to do.

But perhaps you can give a few more details. What are the differences
between the Element1 elements in schema A, B, C and D? If they're in
different namespaces then it's very easy. If they have different
types, then you're talking about a co-occurrence constraint, which
aren't generally possible in XML Schema.

Can you provide some more details?



Jeni Tennison
Received on Tuesday, 2 April 2002 10:55:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC