Skip Menu |
 

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

Report information
The Basics
Id: 38887
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: RENEEB [...] cpan.org
Cc:
AdminCc:

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



Subject: XML::LibXML::Schema reports an error where W3C doesn't
Download (untitled) / with headers
text/plain 999b
Hi, I want to validate a XML file against a schema (see attached testschema.xsd). Therefor I use XML::LibXML::Schema (see attached read_testschema.pl), but I always get this error: When I check it with a W3C tool it says, that the schema is ok: Element '{http://www.w3.org/2001/XMLSchema}maxInclusive': '999999999999999999999999999' is not a valid value of the atomic type 'xs:positiveInteger'. Element '{http://www.w3.org/2001/XMLSchema}maxInclusive': The value '999999999999999999999999999' of the facet does not validate against the base type '{http:// www.w3.org/2001/XMLSchema}positiveInteger'. Schema validating with XSV 3.1-1 of 2007/12/11 16:20:05 * Target: file:/usr/local/XSV/xsvlog/tmp-rMa_Tuploaded (Real name: testschema.xsd) * docElt: {http://www.w3.org/2001/XMLSchema}schema * Validation was strict, starting with type [Anonymous] * The schema(s) used for schema-validation had no errors * No schema-validity problems were found in the target
Subject: testschema.xsd
Download testschema.xsd
application/octet-stream 412b

Message body not shown because it is not plain text.

Subject: read_testschema.pl
Download read_testschema.pl
text/x-perl 105b
#!/usr/bin/perl use XML::LibXML; my $schema = XML::LibXML::Schema->new( location => 'testschema.xsd' );
Download (untitled) / with headers
text/plain 1.5k
The XML Schema spec states that a minimum conforming implementation must support decimal numbers with a minimum of 18 decimal digits. Your has 27, which is beyond what libxml2 supports (which seems to be 24). I added an information about this limit to the documentation. See http://www.w3.org/TR/xmlschema-2/#decimal. Also, more information could be obtain from libxml2 authors on the libxml2 mailing list (vizit http://xmlsoft.org). Since (with the updated documentation) XML::LibXML conforms to the standard regarding this issue, I'm closing this ticket. Petr Show quoted text
> Hi, > > I want to validate a XML file against a schema (see attached > testschema.xsd). Therefor I use XML::LibXML::Schema (see attached > read_testschema.pl), but I always get this error: > > When I check it with a W3C tool it says, that the schema is ok: > > Element '{http://www.w3.org/2001/XMLSchema}maxInclusive': > '999999999999999999999999999' is not a valid value of the atomic type > 'xs:positiveInteger'. > Element '{http://www.w3.org/2001/XMLSchema}maxInclusive': The value > '999999999999999999999999999' of the facet does not validate against
the Show quoted text
> base type '{http:// > www.w3.org/2001/XMLSchema}positiveInteger'. > > Schema validating with XSV 3.1-1 of 2007/12/11 16:20:05 > > * Target: file:/usr/local/XSV/xsvlog/tmp-rMa_Tuploaded > (Real name: testschema.xsd) > * docElt: {http://www.w3.org/2001/XMLSchema}schema > * Validation was strict, starting with type [Anonymous] > * The schema(s) used for schema-validation had > no errors > * No schema-validity problems were found in the target


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.