W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2007

Re: pattern for range of numbers and one fixed number

From: George Cristian Bina <george@oxygenxml.com>
Date: Mon, 05 Mar 2007 23:08:09 +0200
Message-ID: <45EC86B9.9030303@oxygenxml.com>
To: Markus Gamperl <markus.gamperl@gmx.at>
CC: xmlschema-dev@w3.org

Hi Markus,

You can define a union between a type as in your message and a type that 
restricts xs:integer to only 999 using xs:enumeration.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Markus Gamperl wrote:
> 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
Received on Monday, 5 March 2007 21:10:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:41 UTC