Re: Patterns and Decimal

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 UTC