Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML Schema element validation order

From: waste <waste20030@-----.--->
To: xmlschema-dev@--.---
Date: 4/11/2007 8:25:00 PM
> I tried doing the following to remove the error

You've misunderstood (and what you've written is meaningless). You're trying
to use this type in a position where the system requires your type to be a
restriction of xs:unsignedShort, and no type that you define as a union will
ever be a restriction of xs:unsignedShort. Your only remedy is to define
your type without using a union. You could do this for example by defining
it with a pattern:

xs:pattern value="0|5|10|15|20|25|[3-9]\d|\d{3,5}"

Michael Kay
http://www.saxonica.com/

> 
> <xs:anySimpleType>
>    <xs:union>
>      <xs:simpleType>
>        <xs:restriction base="xs:unsignedShort">
>          <xs:enumeration value="0"/>
>          <xs:enumeration value="5"/>
>          <xs:enumeration value="10"/>
>          <xs:enumeration value="15"/>
>          <xs:enumeration value="20"/>
>          <xs:enumeration value="25"/>
>          <xs:enumeration value="30"/>
>        </xs:restriction>
>      </xs:simpleType>
>      <xs:simpleType>
>        <xs:restriction base="xs:unsignedShort">
>          <xs:minInclusive value="31"/>
>        </xs:restriction>
>      </xs:simpleType>
>    </xs:union>
> </xs:anySimpleType>
> 
> but, it doesn't recognise the <xs:anySimpleType> tag. Please help.
> 
> Thanks,
> Nandan.
> 
> 
> --
> View this message in context: 
> http://www.nabble.com/xml-validation-error-tf3564425.html#a9957068
> Sent from the w3.org - xmlschema-dev mailing list archive at 
> Nabble.com.
> 
> 


From waste20030@y... Fri Apr 13 02:01:38 2007
Received: from wiggum.w3.org ([128.3


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