Skip Menu |

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

Report information
The Basics
Id: 39815
Status: rejected
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: chandu.komali [...] gmail.com
Cc:
AdminCc:

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



Subject: Schema validation issue with latest XML::LibXML 1.66 version
Date: Sat, 4 Oct 2008 15:45:30 +0530
To: bug-XML-LibXML [...] rt.cpan.org
From: Chandu <chandu.komali [...] gmail.com>
Hi, I have been using XML::LibXML-1.58 version(libxml2-2.6.8). I have no problems with it. Recently I have upgrade the libraries to XML-LibXML (1.66) and libxml2-2.7.1 to get benefits from InputCallback framework. After upgrading to the newer versions, schema validation is failing. Even a basic version of xsd file is not working. Please look at the below error messages: Element '{http://www.w3.org/2001/XMLSchema}attribute', attribute 'name': 'xml:base' is not a valid value of the atomic type 'xs:NCName'. Element '{http://www.w3.org/2001/XMLSchema}attribute', attribute 'name': 'xml:base' is not a valid value of the atomic type 'xs:NCName' Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'minOccurs' is not allowed. Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'maxOccurs' is not allowed. Element '{http://www.w3.org/2001/XMLSchema}attribute', attribute 'name': 'xml:base' is not a valid value of the atomic type 'xs:NCName'. Element '{http://www.w3.org/2001/XMLSchema}attribute': The attribute 'use' is not allowed. I have the below code(snipped version) in the xsd file: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> The code I use for creating the Schema object is: my $schema = XML::LibXML::Schema->new(location => $schema_file); I have verified the same functionality working well with XML-LibXML(1.66) + libxml2-2.6.16. In the README of 1.66 distribution, it is said that, libxml2-2.6.16 or higher can be used. I have also installed the prerequisites such as SAX, Namespace Support modules. I think it is a bug in the 2.7.1 compatibility. Could you please update the documentation if libxml2-2.7.1 is not compatiable? Thanks, Chandu.
Subject: Re: [rt.cpan.org #39815] AutoReply: Schema validation issue with latest XML::LibXML 1.66 version
Date: Mon, 6 Oct 2008 18:36:30 +0530
To: bug-XML-LibXML [...] rt.cpan.org
From: Chandu <chandu.komali [...] gmail.com>
Hello Team, Any updates on this? Thanks, Chandu. 2008/10/4 Bugs in XML-LibXML via RT <bug-XML-LibXML@rt.cpan.org> Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "Schema validation issue with latest XML::LibXML 1.66 version", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #39815]. Your ticket is accessible > on the web at: > > http://rt.cpan.org/Ticket/Display.html?id=39815 > > Please include the string: > > [rt.cpan.org #39815] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-XML-LibXML@rt.cpan.org > > ------------------------------------------------------------------------- > Hi, > > I have been using XML::LibXML-1.58 version(libxml2-2.6.8). I have no > problems with it. Recently I have upgrade the libraries to XML-LibXML > (1.66) > and libxml2-2.7.1 to get benefits from InputCallback framework. After > upgrading to the newer versions, schema validation is failing. Even a basic > version of xsd file is not working. Please look at the below error > messages: > > Element '{http://www.w3.org/2001/XMLSchema}attribute<http://www.w3.org/2001/XMLSchema%7Dattribute>', > attribute 'name': > 'xml:base' is not a valid value of the atomic type 'xs:NCName'. > Element '{http://www.w3.org/2001/XMLSchema}attribute<http://www.w3.org/2001/XMLSchema%7Dattribute>', > attribute 'name': > 'xml:base' is not a valid value of the atomic type 'xs:NCName' > Element '{http://www.w3.org/2001/XMLSchema}element<http://www.w3.org/2001/XMLSchema%7Delement>': > The attribute > 'minOccurs' is not allowed. > Element '{http://www.w3.org/2001/XMLSchema}element<http://www.w3.org/2001/XMLSchema%7Delement>': > The attribute > 'maxOccurs' is not allowed. > Element '{http://www.w3.org/2001/XMLSchema}attribute<http://www.w3.org/2001/XMLSchema%7Dattribute>', > attribute 'name': > 'xml:base' is not a valid value of the atomic type 'xs:NCName'. > Element '{http://www.w3.org/2001/XMLSchema}attribute<http://www.w3.org/2001/XMLSchema%7Dattribute>': > The attribute 'use' > is not allowed. > > I have the below code(snipped version) in the xsd file: > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> > > The code I use for creating the Schema object is: > > my $schema = > XML::LibXML::Schema->new(location => $schema_file); > > I have verified the same functionality working well with XML-LibXML(1.66) + > libxml2-2.6.16. In the README of 1.66 distribution, it is said that, > libxml2-2.6.16 or higher can be used. I have also installed the > prerequisites such as SAX, Namespace Support modules. I think it is a bug > in > the 2.7.1 compatibility. Could you please update the documentation if > libxml2-2.7.1 is not compatiable? > > Thanks, > Chandu. > >
Dne po 06.říj.2008 09:06:53, chandu.komali@gmail.com napsal(a): Show quoted text
> Hello Team, > > Any updates on this? > > Thanks, > Chandu.
Hi, I don't think this is an issue of XML-LibXML, but of libxml2 itself. Try validating your documents with xmllint --schema ... from libxml2-2.7.1 to see if that works as you expect. If not, then you should report your problem on the xml@gnome.org mailing list instead. -- Petr
Rejecting as OLD.