- From: Jeni Tennison <jeni@jenitennison.com>
- Date: Tue, 2 Apr 2002 16:55:10 +0100
- 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? Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/
Received on Tuesday, 2 April 2002 10:55:12 UTC