Skip Menu |

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

Report information
The Basics
Id: 29012
Status: resolved
Priority: 0/
Queue: XML-Compile

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

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



Subject: XML::Compile::Schema::XmlReader::complex_element
I have a schema where a compilation attempt leads to the error Can't call method "node" on an undefined value at /usr/local/share/perl/5.8.8/XML/Compile/Schema/XmlReader.pm line 379. (I can send the schema on request, but probably I have to strip it down to the relevant part). Near the problematic line I see the following: sub { my $tree = shift; # or return (); If I activate the "or return ()" part, then the error vanishes and the schema is compiled OK and seems to work. Regards, Slaven
Subject: Re: [rt.cpan.org #29012] XML::Compile::Schema::XmlReader::complex_element
Date: Mon, 27 Aug 2007 23:13:52 +0200
To: Slaven_Rezic via RT <bug-XML-Compile [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
* Slaven_Rezic via RT (bug-XML-Compile@rt.cpan.org) [070827 13:27]: Show quoted text
> I have a schema where a compilation attempt leads to the error > > Can't call method "node" on an undefined value at > /usr/local/share/perl/5.8.8/XML/Compile/Schema/XmlReader.pm line 379.
Lucky you ;-) always hitting the bugs... Show quoted text
> > (I can send the schema on request, but probably I have to strip it down > to the relevant part).
I would like to see what kind of test I need to reproduce the error, you please send me the schema and an example message. -- Will I see you tomorrow in Vienna? MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
I did not get an example to reproduce the error messages, but I do expect I have solved the problem, although differently... the production rules probably should not be skipped. See 0.53