Skip Menu |

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

Report information
The Basics
Id: 8592
Status: new
Priority: 0/
Queue: XML-Validator-Schema

People
Owner: Nobody in particular
Requestors: frederik.uyttersprot [...] gmail.com
Cc:
AdminCc:

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



Subject: XSD loading fails : Found <simpleType> illegally combined with <complexType>.
Hi, I'm trying to load an XSD which was created using XMLSpy and validates/loads in other tools like Stylos Studio XML. I'm getting the error; Found <simpleType> illegally combined with <complexType>. If you require more details let me know. What is wrong here? My code (nothing special); use strict; use XML::SAX::ParserFactory; use XML::Validator::Schema; my $validator = XML::Validator::Schema->new(file => 'test.xsd', cache => 1); My Perl; root_mhs@localhost # /usr/local/bin/perl -v This is perl, v5.8.0 built for sun4-solaris
Please show me the XSD. Most likely you're trying to do something that XML::Validator::Schema doesn't support. It's not a complete implementation of XML Schema, which I'm sure you know from reading the docs.
From: Frederik
[SAMTREGAR - Wed Nov 24 08:28:58 2004]: Show quoted text
> Please show me the XSD. Most likely you're trying to do something > that > XML::Validator::Schema doesn't support. It's not a complete > implementation of XML Schema, which I'm sure you know from reading the > docs.
Hi, Can I mail the XSD somewhere instead of posting it here? R, Frederik.
From: Frederik
[SAMTREGAR - Wed Nov 24 08:28:58 2004]: Show quoted text
> Please show me the XSD. Most likely you're trying to do something > that > XML::Validator::Schema doesn't support. It's not a complete > implementation of XML Schema, which I'm sure you know from reading the > docs.
Hi, I send you a mail to the address I found on CPAN. I hope you got it and have time to look at it. Please keep me updated. Thanks, Frederik.
[SAMTREGAR - Wed Nov 24 08:28:58 2004]: Show quoted text
> Please show me the XSD. Most likely you're trying to do something > that > XML::Validator::Schema doesn't support. It's not a complete > implementation of XML Schema, which I'm sure you know from reading the > docs.
Hi, I've done some debugging myself and found out on what part it breaks (see below); for some reason it's not allowing the simpleType within the complexType - I checked the documentation once more but can't find anything about this. For all other possible "support issues" within this modules documentation I think your module handles everything used within this part. What do you think? R, Frederik. +<xs:element name="addressitem"> + <xs:annotation> + <xs:documentation> + The address lines for this recipient + </xs:documentation> + </xs:annotation> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="index" use="required"> + <xs:simpleType> + <xs:restriction base="xs:integer"> + <xs:minInclusive value="1"/> + <xs:maxInclusive value="5"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:extension> + </xs:simpleContent> + </xs:complexType> +</xs:element>
From: Frederik
[SAMTREGAR - Wed Nov 24 08:28:58 2004]: Show quoted text
> Please show me the XSD. Most likely you're trying to do something > that > XML::Validator::Schema doesn't support. It's not a complete > implementation of XML Schema, which I'm sure you know from reading the > docs.
Sam, I was wondering if you will come back to me on this issue. I had hoped to get some feedback from you. I have to make a decision on what I'll do the latest wednesday next week (8dec2004). I had hoped you would tell me at least if it's a bug, not-supported feature, anything else... Is there a way to rewrite the XSD to make this work? R, Frederik.