Re: [xml] Problem validating regexp.

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">

I basically want to specify a function name as being at least two
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
through XMLSpy however.

Any ideas what is wrong?

See  Should be fixed in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]