[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: alternative to <redefine />

  • From: "Michael Kay" <mike@s...>
  • To: "'Ran'" <ran256@g...>,<xml-dev@l...>
  • Date: Mon, 18 Dec 2006 11:10:54 -0000

RE:  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
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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.