Skip Menu |

This queue is for tickets about the XML-Validator-Schema CPAN distribution.

Report information
The Basics
Id: 6727
Status: resolved
Priority: 0/
Queue: XML-Validator-Schema

People
Owner: Nobody in particular
Requestors: h.bridge [...] fasol.fujitsu.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.06
Fixed in: (no value)



Subject: Facet "minInclusive" does not work
I will report a bug in module XML-Validator-Schema-1.06. (perl version 5.6.1) (SunOS sunrise 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Blade-1000) One of the facets of decimal type definition, minExclusive, seems not to work properly. The other facets, like minInclusive or max*, do work. I wrote a schema as below: <simpleType name="hogehogeType"> <restriction base="decimal"> <minExclusive value="-50"/> </restriction> </simpleType> Validating with the above schema gives the error message: **************************************************** Use of uninitialized value in bitwise and (&) at /usr/local/lib/perl5/site_perl/ 5.6.1/XML/Validator/Schema/SimpleType.pm line 356. Found illegal restriction 'minExclusive' on type derived from 'decimal'. at /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/XML/LibXML/SAX.pm line 63 **************************************************** And, by looking into the SimpleType.pm file, the bug seems to be found in a hash list at line 80, as shown below: **************************************************** # hash mapping names to values our %FACET = (length => LENGTH, minLength => MINLENGTH, maxLength => MAXLENGTH, pattern => PATTERN, enumeration => ENUMERATION, whiteSpace => WHITESPACE, maxInclusive => MAXINCLUSIVE, maxExclusive => MAXEXCLUSIVE, minInclusive => MININCLUSIVE, totalDigits => TOTALDIGITS, fractionDigits => FRACTIONDIGITS); **************************************************** It can be seen that a facet "minExclusive" is missing in the hash list.
This is fixed for 1.07. Thanks for the report.