
On Wed, Dec 16, 2009 at 04:24:52PM +0100, Jiri Denemark wrote:
<define name='uint'> - <data type='string'> + <data type='unsignedInt'> <param name="pattern">[0-9]+</param> </data> </define>
Hum, why do you change this ?
Because you wanted me to do so last time you reviewed this patch :-)
But basically if you use http://www.w3.org/TR/xmlschema-2/#unsignedInt as the base type then the pattern restriction is superfluous.
It's derived (transitively) from nonNegativeInteger by setting maxInclusive. Since, nonNegativeInteger allows '+' sign at the beginning and I wanted to disallow that. Perhaps I'm reading that specification in a wrong way...
Ah, right, my mistake :-)
[...]
+ <define name='positiveInteger'> + <data type='positiveInteger'> + <param name="pattern">[0-9]+</param> + </data> + </define>
Same here, but it's nitpick, it should work as is, ACK,
Thanks.
Sorry :-) ACK ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/