Skip Menu |

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

Report information
The Basics
Id: 6163
Status: open
Priority: 0/
Queue: XML-Validator-Schema

People
Owner: Nobody in particular
Requestors: KrauseM [...] gmx.net
Cc:
AdminCc:

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



Subject: Several problems occuring validating xml data, one stange
Hello, First of all thank you very much for this great module for validating XML vs. Schemas. Sadly I have some trouble applying it ...: Processing my test.xsd/test.xml bundle the following errors occured, although according to e.g. XML-Spy the xml/xsd files are valid: OS: Solaris 8, Perl 5.8.2 testdata: test.xml + test.xsd Module Version: 1.06 of April, 21st 2004 Error Messages: * "Unrecognized element '<appinfo>'." this should imho be handled like <xs:documentation> -> reason: missing definition in Parser.pm line 199 * "Found illegal restriction 'minInclusive' on type derived from 'float'." -> reason: commented statements in SimpleType.pm line 126+ BTW. The minInclusive/maxInclusive facets of 'decimal' and 'double' mismatch also the standard to the support minxx, maxxx. * "Illegal attribute 'XIDY' found in <PROSPEC>." -> reason: unknown, even after hard trials to find the reason I am not able to track it down. One assumption is that the attribute XIDY is not attached to the correct parent (PROSPEC) . I came to it backtracing from the error message occurance in check_attributes() in ElementNode.pm line 122+, since the error occurs here because @{$self->{attr}} is empty ... -> ParseError of XSD?? , ... ??? Please help. Many thanks in advance for your support. Best Regards Michael Krause.
Download bugdata.tar.gz
application/gzip 6.6k

Message body not shown because it is not plain text.

Responses to your bug reports: 1) <appinfo> is not supported. Only the tags listed in the SCHEMA SUPPORT section of the POD are supported. Thus, this is not a bug. If you'd like to add support for <appinfo>, please send me a patch including docs and tests. 2) As the docs states: Notes: Although double correctly validates the lexical format it does not offer comparison facets (min*, max*, enumeration). Also, minimum and maximum constraints as described in the spec are not checked. Maybe it wasn't obvious that this applies to float too. It's not just a matter of uncommenting some code. If you want to add support for min* and max* on double and float you'll need to read the spec and then make a patch containing a proper implementation, tests and docs. Please note that sending me a replacement .pm is not a substitute for a patch. 3) I am unable to reproduce this error. After reducing your XSD to containing just the PROSPEC element I was able to validate an XML file containing a PROSPEC element with an attribute. Perhaps you didn't send me the actual files that produced this error?
Subject: RE:Several problems occuring validating xml data, one stange
From: KrauseM [...] gmx.net
Regarding 1) and 2) Of course, if you can tell me how you would like to have the test/doc/patch I am willing to create it. But initially my intention was to ask you to put these items on the 'smoothly skipped/ignored' list, just like other ones that aren't error-flagged but ignored. Regarding 3) Although I am quite sure I sent the correct bundle, I re-attach an even shorter version to this mail. Running exactly test.xml vs. test.xsd under 1.06(!) of your module installed without any private hacks to any CPAN module necessary, I still do get the "Illegal attribute 'XIDY' found in <PROSPEC>" error message. Can you reproduce now? (You wrote you stripped the XSD, what exactly did you delete?) BTW: Thanks for your quick response.
Download bug_short.tar.gz
application/gzip 742b

Message body not shown because it is not plain text.

Subject: RE:Several problems occuring validating xml data, one stange
From: KrauseM [...] gmx.net
Regarding 1) and 2) Of course, if you can tell me how you would like to have the test/doc/patch I am willing to create it. But initially my intention was to ask you to put these items on the 'smoothly skipped/ignored' list, just like other ones that aren't error-flagged but ignored. Regarding 3) Although I am quite sure I sent the correct bundle, I re-attach an even shorter version to this mail. Running exactly test.xml vs. test.xsd under 1.06(!) of your module installed without any private hacks to any CPAN module necessary, I still do get the "Illegal attribute 'XIDY' found in <PROSPEC>" error message. Can you reproduce now? (You wrote you stripped the XSD, what exactly did you delete?) BTW: Thanks for your quick response.
Download bug_short.tar.gz
application/gzip 742b

Message body not shown because it is not plain text.

Subject: RE:Several problems occuring validating xml data, one stange
From: KrauseM [...] gmx.net
Regarding 1) and 2) Of course, if you can tell me how you would like to have the test/doc/patch I am willing to create it. But initially my intention was to ask you to put these items on the 'smoothly skipped/ignored' list, just like other ones that aren't error-flagged but ignored. Regarding 3) Although I am quite sure I sent the correct bundle, I re-attach an even shorter version to this mail. Running exactly test.xml vs. test.xsd under 1.06(!) of your module installed without any private hacks to any CPAN module necessary, I still do get the "Illegal attribute 'XIDY' found in <PROSPEC>" error message. Can you reproduce now? (You wrote you stripped the XSD, what exactly did you delete?) BTW: Thanks for your quick response.
Download bug_short.tar.gz
application/gzip 742b

Message body not shown because it is not plain text.

Subject: RE:Several problems occuring validating xml data, one stange
From: KrauseM [...] gmx.net
Regarding 1) and 2) Of course, if you can tell me how you would like to have the test/doc/patch I am willing to create it. But initially my intention was to ask you to put these items on the 'smoothly skipped/ignored' list, just like other ones that aren't error-flagged but ignored. Regarding 3) Although I am quite sure I sent the correct bundle, I re-attach an even shorter version to this mail. Running exactly test.xml vs. test.xsd under 1.06(!) of your module installed without any private hacks to any CPAN module necessary, I still do get the "Illegal attribute 'XIDY' found in <PROSPEC>" error message. Can you reproduce now? (You wrote you stripped the XSD, what exactly did you delete?) BTW: Thanks for your quick response.
Download bug_short.tar.gz
application/gzip 742b

Message body not shown because it is not plain text.