On Thu, 13 Sep 2001, David Lindquist wrote:
> Whoops. Should have done my homework. It appears that Xerces does not
> recognize the "^" and "$".
>
> I think this is what you want:
>
> <xsd:maxLength value = "4"/>
> <xsd:minLength value = "2"/>
> <xsd:pattern value="[a]{2,4}"/>
It's only partial solution. In this manner I can not constraint length of
substrings enclosed in string.
I dont speak english very good, but as i undestand in XML Schama 2:
S{n,m} ..... All sequences of at least n, and at most m,
"at most m" schould mean "NOT more then m, inclusiv m"
By the way, such a possibility "more than m ist valid too" is senseless,
because if more than m ist valid, so why to specyfy m?
For example, XML Spy 3.5 and 4.0 doesn't accept strings longer then m.
XSV doesn't validate patterns at all.
>
> -----Original Message-----
> From: Radek Wisniewski [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 13, 2001 7:12 AM
> To: [EMAIL PROTECTED]
> Subject: regexp bug
>
>
> Patterns like this:
>
> <xsd:pattern value="[a]{2,4}"/>
>
> say:
> strings "a" is not valid
> strings "aa" "aaa" "aaaa" are valid
> but "aaaaa" "aaaaaaaaaaaaa" and so on are valid to
>
> Upper limit doesn't work.
>
> xerces 1.4.3
> any JDK
>
> Radek Wisniewski
> www.datenknecht.de
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]