Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Restricting the behaviour of an imported complexType >Thread Next - Re: Restricting the behaviour of an imported complexType Re: Restricting the behaviour of an imported complexTypeTo: NULL Date: 3/2/2006 2:09:00 PM steve_marjoribanks wrote: > I want to import a complex type into my schema which contains a complex > type which includes a choice as shown below: > > <choice minOccurs="2" maxOccurs="unbounded"> > <element ref="gml:pos"/> > <element ref="gml:pointProperty"/> > <element ref="gml:pointRep"> > </choice> > > Howver, in my schema I only want to allow the "gml:pos" element to > occur, not the others. Is it possible to restrict the allowable > instances of the imported complexType within my schema? I know I could > just reference the gml:pos element directly but I was wondering if it > is possible to import the complex type and then restrict the values? Generally you can extend and restrict existing types, see <http://www.w3.org/TR/xmlschema-0/#DerivByRestrict> -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
