* Aleksey Mashanov via RT (bug-XML-Compile@rt.cpan.org) [101019 19:41]:
Show quoted text> Tue Oct 19 13:41:31 2010: Request 62281 was acted upon.
> Transaction: Ticket created by amashanov
> Queue: XML-Compile
> Subject: unsignedInt range
> Requestors: aleksey.mashanov@gmail.com
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=62281 >
>
> As described in XMLSchema, unsignedInt max value is 4294967295, but I
> see error "error: illegal value `2152992672' for type
> {
http://www.w3.org/2001/XMLSchema}unsignedInt"
>
> Problem is in XML::Compile::Schema::BuiltInTypes:
> sub {$_[0] =~ m/^\s*\+?\s*\d[\s\d]*$/ && ($_[0] =~ tr/0-9//) <10}
> Must be 10 digits max, not 9.
You find nice bugs in corner cases. Thanks!
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark@Overmeer.net solutions@overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net