Re: XML::LibXML search path for DTDs

Roger Pepitone <[email protected]> Mon, 8 Oct 2012 10:03:42 -0700 (PDT)
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Well, one of my problems appears to be bad error reporting.
If libxml2 can't resolve the URI given in the catalog, it just ignores that line.
Considering all the confusion about relative uris, it's pretty easy to get them wrong.

I've run into another problem.
The absolute path of where my file is located contains some non-ascii characters.
If I take URI::file->new_abs ("./${SVN}/dtds/type.dtd"), and put that in the catalog, then libxml2 complains about broken URIs.
(File path contains \x81 \x59, which is CP932 for U2010. URI contains "%81]".)
Is this a bug in URI::file or libxml2?


________________________________
 From: Michael Ludwig <[email protected]>
To: [email protected] 
Sent: Thursday, October 4, 2012 4:15 PM
Subject: Re: XML::LibXML search path for DTDs
 
Roger Pepitone schrieb am 03.10.2012 um 12:33 (-0700):
> I'm having trouble putting everything together with catalogs.
> 
> Is there a simple example along the lines of:
> - Copy-past this into xml/file.xml
> - Copy-past this into dtds/doc.dtd
> - Copy-past this into catalogs/catalog.xml
> - Run this command
> available anywhere?

http://code.activestate.com/lists/perl-xml/8854/

https://mail.gnome.org/archives/xml/2012-May/msg00023.html

$ export XML_CATALOG_FILES=/usr/local/src/libxml2/katalog.xml
$ export XML_DEBUG_CATALOG=1
$ cat $XML_CATALOG_FILES

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

<system systemId="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
  uri="dtd/xhtml1/xhtml1-strict.dtd"/>

<system systemId="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
  uri="dtd/xhtml1/xhtml1-transitional.dtd"/>

<system systemId="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";
  uri="dtd/xhtml11/xhtml11-flat.dtd"/>

</catalog>

Michael
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs