By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,965 Members | 1,468 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,965 IT Pros & Developers. It's quick & easy.

Inheritance in schema order insensitive

P: n/a
Is it possible to define inheritance between complex types in schema
definitions so that the derived has the base elements and extended
elements but is order insensitive. I have seen how to do it using
Sequence but that imposes order. Is there a way to do it using Choice
or All??

Thanx in advance,
Amol.

e.g. PeronFullInfoType extends PersonType and I want to support xml
structures as follows:

<Person>
<FirstName/>
<LastName/>
</Person>

<PersonFullInfo>
<FirstName/>
<LastName/>
<Phonenumber/>
<Sex/>
<Address/>
<LastName/>
</PersonFullInfo>

<PersonFullInfo>
<Sex/>
<Address/>
<FirstName/>
<Phonenumber/>
</PersonFullInfo>

Aug 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
When you extend a complex type you get sequence, see 3.2.3 from
http://www.w3.org/TR/xmlschema-1/#key-efm

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

am**********@gmail.com wrote:
Is it possible to define inheritance between complex types in schema
definitions so that the derived has the base elements and extended
elements but is order insensitive. I have seen how to do it using
Sequence but that imposes order. Is there a way to do it using Choice
or All??

Thanx in advance,
Amol.

e.g. PeronFullInfoType extends PersonType and I want to support xml
structures as follows:

<Person>
<FirstName/>
<LastName/>
</Person>

<PersonFullInfo>
<FirstName/>
<LastName/>
<Phonenumber/>
<Sex/>
<Address/>
<LastName/>
</PersonFullInfo>

<PersonFullInfo>
<Sex/>
<Address/>
<FirstName/>
<Phonenumber/>
</PersonFullInfo>
Aug 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.