XSD Inheritance: Is it possible

Hi ,

I wasnt sure where to post this, As its some wher related to xml, I am posting it here.

I have a xsd {a1.xsd} which has many elements of complex type and now my requirement is to write a new xsd {b1.xsd} , This new xsd has many elements that are common to a1.xsd , But it {b1.xsd} has its own new xsd elements. I was wondering if there is some way of inhertance in xsd. I would like to place the common elements of a1.xsd and b1.xsd into common.xsd, Further i want both a1.xsd and b1.xsd to inherit the common.xsd {Or shd be possible to use the elements}. {Some kind of inheritance} so that i should be able to reuse. Why am i talking all this is because. Once i have the xsd'd i want them to unmarshall them in to JAva classes using JAXB, All the complex types of xsd'd will be converted to java classes. If i have few types in xsd common then i could redunce the number of classes {As they are common , This would reduce redundant code}

I am not sure even if this is possible and is this a good way of doing it.

Hope you understood my problem.

Thanks

deepak

[1110 byte] By [deepu-jaina] at [2007-10-2 12:15:16]
# 1
xsd:extension is used for this, see http://www.w3schools.com/schema/el_extension.asp
dmbdmba at 2007-7-13 9:00:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...