Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: element within element

From: "Han" <hp4444@------.---.----->
To: NULL
Date: 8/3/2004 2:06:00 PM
any element with another element within choice composes ambiguous content.
FYI, choice doesn't presume order within. The element with any element
should be positioned with sequence, or any element should have namespace
within choice if used with another element. e.g.

<choice>
<element name=name/>
<any namespace=namespace minOccurs=0/>
</choice>

Or

<sequence>
<element name=name/>
<any minOccurs=0/>
</sequence>

"Lev Dyadkin" <l.dyadkin@l...> wrote in message
news:uJlqboNeEHA.2440@t......
> Hi,
>
> The MSXML4 parser allows for <any> element to be the only one in <choice>
> element.  However, if it's not the only one, it declares the schema
illegal.
> For example, the following is legal:
>
> ...
>    <xs:element name="root">
>       <xs:complexType>
>          <xs:choice>
>             <xs:any minOccurs="0" processContents="skip"/>
>          </xs:choice>
>       </xs:complexType>
>    </xs:element>
> ...
> But the following is illegal:
> ...
>    <xs:element name="root">
>       <xs:complexType>
>          <xs:choice>
>             <xs:element name="a" type="aT"/>
>             <xs:any minOccurs="0" processContents="skip"/>
>          </xs:choice>
>       </xs:complexType>
>    </xs:element>
> ...
> Why?
>
> Thanks,
> Lev Dyadkin
>
>




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent