[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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/
[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|