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-9s_-.']{0,30}[a-zA-Z0-9]&
quot;/>
> </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 htt
p://bugzilla.gnome.org/show_bug.cgi?id=425542. Should
be fixed in
SVN.
Bill
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
|