RE: pattern in schema

2002-03-21 Thread James Liu
Title: pattern in schema we just found that Xerces 1.4.4 support XML schema 1.0, which does not support {n,m} pattern. and "^\d{1,9}\.\d{2}$" does not work either. have to change it to "\d\d*.\d{2}" plus a maxLength restriction.   but thanks any way, Chris.     Ja

RE: pattern in schema

2002-03-21 Thread Christopher Ebert
Title: pattern in schema       Hi James,       Just from experience with regexes, it might need to be "^\d{1,9}\.\d{2}$", specifying the start and end of the string. Otherwise, if it finds the pattern at all, it will match (e.g. 1234567890.12 = 1(234567890.12), which is a match bu

pattern in schema

2002-03-21 Thread James Liu
Title: pattern in schema Hi, I have the following definition in schema:                     shouldn't 1234567890.12 be invalid value for this type? but Xerces 1.4.4 does not catch it. Anyone knows why? thanks in ad