Re: Patterns and Decimal

On Thu, 2003-02-27 at 10:30, daniella d wrote:
> 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>

That does what I expect it to when I try it.  That is:

123.00
123
0.123

are all valid.

0123

is invalid.

Is this different from what occurs at your end - if so, what validating
parser are you using.  Otherwise, what are you expecting it to do.

Paul
-- 
Paul Warren, Client Services           DecisionSoft Limited
+44-1865-203192                        http://www.decisionsoft.com

Received on Thursday, 27 February 2003 08:25:17 UTC