OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] alternative to <redefine />

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

From: Ran [mailto:ran256@gmail.com]
Sent: 18 December 2006 07:33
To: xml-dev@lists.xml.org
Subject: [xml-dev] alternative to <redefine />

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.


I use Axis2 ADB binding but it doesn't support complexType extension.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS