Re: XML::LibXML Catalogs problem
by Petr Pajas other posts by this author
Jun 18 2006 6:23AM messages near this date
view in the new Beta List Site
XML::LibXML Catalogs problem
|
Re: XML::LibXML Catalogs problem
& XSLT On Saturday 17 June 2006 21:03, Bruce Miller wrote:
> Hi all;
> As long as Petr is poking around in there... :>
Hi Bruce,
> I've come across a curious bit with the XML_DEBUG_CATALOG
> environment variable (which tells libxml2 to output
> extra debugging info while resolving entities from catalogs).
>
> The following code snippet works when the variable is
> unset, but if you do
> export XML_DEBUG_CATALOG=
> before running it will do the apparent equivalent of die.
> The message sounds almost as if it executed:
> die "found the entity!"
> which seems to be overly enthusiastic :>
lol
On my box I got (running from my home dir):
Resolve: pubID -//OASIS//DTD DocBook XML V4.4//EN sysID docbookx.dtd
-1210492736 Parsing catalog file:///etc/xml/catalog
file:///etc/xml/catalog added to file hash
file:///etc/xml/suse-catalog.xml not found in file hash
-1210492736 Parsing catalog file:///etc/xml/suse-catalog.xml
file:///etc/xml/suse-catalog.xml added to file hash
file:///usr/share/xml/docbook/schema/dtd/4.4/catalog.xml not found in file
hash
-1210492736 Parsing catalog
file:///usr/share/xml/docbook/schema/dtd/4.4/catalog.xml
file:///usr/share/xml/docbook/schema/dtd/4.4/catalog.xml added to file hash
Trying public delegate
file:///usr/share/xml/docbook/schema/dtd/4.4/catalog.xml
Found public match -//OASIS//DTD DocBook XML V4.4//EN
Catalogs cleanup
END failed--call queue aborted.
and running from /usr/share/xml/docbook/schema/dtd/4.4/, I got:
Got catalog: XML::LibXML::Dtd=SCALAR(0x825f030)
Catalogs cleanup
END failed--call queue aborted.
It looks like a match was found but not used.
Can you please fill a ticket on rt.cpan.org? I should try to have a look at
some of them during the week.
-- Petr
> I poked a little in LibXML.xs but can't figure out
> what is going on other than something reportable
> as an error has ended up in saved_error
> (but I know next to nothing about xs)
>
> ======================
> #!/usr/bin/perl -w
> use XML::LibXML;
>
> my $pubid ="-//OASIS//DTD DocBook XML V4.4//EN";
> my $sysid = "docbookx.dtd";
> XML::LibXML->load_catalog('/etc/xml/catalog');
> my $dtd = XML::LibXML::Dtd->new($pubid,$sysid);
> print "Got catalog: $dtd\n";
>
> ======================
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Bruce Miller
Petr Pajas
Bruce Miller
|