[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Michael Kay" <mike@s...>
  • To: "'Ran'" <ran256@g...>,<xml-dev@l...>
  • 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
http://www.saxonica.com/
 


From: Ran [mailto:ran256@g...]
Sent: 18 December 2006 07:33
To: xml-dev@l...
Subject: 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.

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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member