Re: [xml] Using xml catalogs



On Mon, Mar 29, 2004 at 01:40:52PM +0200, Petr Novak wrote:
I done it, but it still not woks. I'm sending my testing program for it
(it has only 2 lines), xml document and catalog. I don't know what's wrong.

[...]
int main(int argc, char* argv[]){
      xmlDocPtr Document = xmlParseFile(argv[1]);
      xmlCatalogDump(stdout); 
}

<?xml version="1.0"?>
<?oasis-xml-catalog catalog="file:///home/novak/liberouter/netopeer/core/repository/validate/catalog.xml"?>
<configuration version="1.0">

</configuration>

  Well, you don't use the local catalog, it's not that libxml2
doesn't handle it, it's that you make no use of it apparently.
xmlCatalogDump() dumps the global catalog, not the one which may
be used for the specific document. And without any DOCTYPE in your
instance I can't see how you expect the local catalog to have any
use.
  I noticed that xmlCatalogDump and xmlDumpACatalog documentation were wrong
so I fixed them.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]