W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2003

Re: Patterns and Decimal

From: <Arnold.Schrijver@2organize.com>
Date: Thu, 27 Feb 2003 12:20:19 +0100
To: xmlschema-dev@w3.org
Cc: daniella d <daneladg@yahoo.co.uk>
Message-ID: <OFA3EACF70.CBB13E30-ONC1256CDA.003E118F@2organize.com>
This is, I think, because any expression that matches the third pattern,
also matches the second.

Cheers,

Arnold Schrijver
The Netherlands.





daniella d <daneladg@yahoo.co.uk>
Sent by: xmlschema-dev-request@w3.org
02/27/2003 11:30 AM

 
        To:     xmlschema-dev@w3.org
        cc: 
        Subject:        Patterns and Decimal


Hi,
When I use the patterns bellow the third pattern is ignored. Can somebody 
tell me  why?
Thank you
daniella
   <xsd:simpleType>
   <xsd:restriction base = "xsd:decimal">
    <xsd:totalDigits value = "11"/>
    <xsd:fractionDigits value = "3"/> 
    <xsd:pattern value = "[0-9][.][0-9]*"/> 
    <xsd:pattern value = "[1-9][0-9]*[.][0-9]*"/>
    <xsd:pattern value = "[1-9][0-9]*"/>
   </xsd:restriction>
  </xsd:simpleType>
Received on Thursday, 27 February 2003 06:18:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT