Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: pattern for range of numbers and one fixed number

From: "Michael Kay" <mike@--------.--->
To: "'Markus Gamperl'" <markus.gamperl@---.-->, <xmlschema-dev@--.--->
Date: 3/5/2007 9:55:00 PM
Define the type as a union of two types, one of which accepts 11 to 109, =
the
other of which accepts only 999.

In Schema 1.1 you will be able to say <xs:assert test=". = (11 to =
109,
999)"/> (well, you will, if they decide to provide xs:assert on simple =
types
as well as complex types!)

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


> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Markus Gamperl
> Sent: 05 March 2007 20:42
> To: xmlschema-dev@w...
> Subject: pattern for range of numbers and one fixed number
> 
> 
> Hi.
> 
> I want to define an element which exepts the number 11 until 
> 109 and the number 999.
> 
> The following simple type:
> <xs:simpleType name="intzahl">
>  <xs:restriction base="xs:integer">
>   <xs:minInclusive value="11"/>
>   <xs:maxInclusive value="109"/>
>   ???
>  </xs:restriction>
> </xs:simpleType>
> 
> How to define the pattern for the value 999?
> 
> Thanks
> Markus
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
> Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> 


From lists@n... Mon Mar 05 23:39:09 2007
Received: from wiggum.w3.org ([128.


transparent
Print
Mail
Digg
delicious
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