[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Problem validating regexp.
- From: "William M. Brack" <wbrack mmm com hk>
- To: "fred basset" <fredbasset1000 gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] Problem validating regexp.
- Date: Fri, 13 Apr 2007 17:45:59 -0700 (PDT)
fred basset wrote:
> Hi All,
>
> In my schema file I have a "function_name_t" type specified as :
>
> <xs:simpleType name="function_name_t">
> <xs:restriction base="xs:string">
> <xs:pattern
> value="[a-zA-Z0-9][a-zA-Z0-9\s_\-\.']{0,30}[a-zA-Z0-9]"/>
> </xs:restriction>
> </xs:simpleType>
>
> I basically want to specify a function name as being at least two
> characters
> long, at most
> 32 chars long, but it cannot start or end with any non alpha, non numeric
> chars. Certain chars such
> as underscores and spaces are OK in the middle however.
>
> I would have expected the string "aa" to pass validation with the above
> expression, but it does not. I'm using
> libxml2 version 2.6.26. It does validate when I run the schema and XML
> file
> through XMLSpy however.
>
> Any ideas what is wrong?
See http://bugzilla.gnome.org/show_bug.cgi?id=425542. Should be fixed in
SVN.
Bill
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]