S
steve_marjoribanks
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="gmlos"/>
<element ref="gmlointProperty"/>
<element ref="gmlointRep">
</choice>
Howver, in my schema I only want to allow the "gmlos" 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 gmlos element directly but I was wondering if it
is possible to import the complex type and then restrict the values?
Thanks
Steve
type which includes a choice as shown below:
<choice minOccurs="2" maxOccurs="unbounded">
<element ref="gmlos"/>
<element ref="gmlointProperty"/>
<element ref="gmlointRep">
</choice>
Howver, in my schema I only want to allow the "gmlos" 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 gmlos element directly but I was wondering if it
is possible to import the complex type and then restrict the values?
Thanks
Steve