[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] alternative to <redefine />
- From: "Michael Kay" <mike@saxonica.com>
- To: "'Ran'" <ran256@gmail.com>,<xml-dev@lists.xml.org>
- Date: Mon, 18 Dec 2006 11:10:54 -0000
If User.xsd says that the <user> element has no
children, then the only way you can change that in Main.xsd is to extend or
redefine the complexType used in the original definition.
You may be able to achieve the modularity you need by
defining <user> in User.xsd to use a named model group (xs:group ref="x")
as its content model. This group can then be defined (xs:group name="x") in
Main.xsd. This allows different modules that xs:include User.xsd to contain
different definitions of this model group (provided they aren't used at the same
time).
Michael Kay
Hi all,
I m new to xsd, I would like to ask if there is a
alternative way to nest predefined elements. For instance:
I have defined
user element in User.xsd, address element in Address.xsd, phone element in
Phone.xsd etc.
in main xsd, I would like to specify what element(s) are
nested in user element without redefining (extending)
user.
Thanks
ran
P.S.
I use Axis2 ADB binding but it
doesn't support complexType extension.
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]