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

Re: [xml] Using xml catalogs



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.

-petrn

On Fri, Mar 26, 2004 at 09:58:31AM -0500, Daniel Veillard wrote:
> On Fri, Mar 26, 2004 at 11:33:27AM +0100, Petr Novak wrote:
> > Hallo,
> > I have the following questin: I need to use some XML catalog resolution in
> > my XML document, but the <?oasis-xml-catalog?> processing instruction is
> > ignored by libxml2. 
> 
> Libxml implements this, check your syntax and the location of said PI it
> will only be accepted at the very beginning of the document, per the spec !
> 
> 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/

-- 

Petr Novak, Liberouter Project (www.liberouter.org)
E-mail: novak merlot ics muni cz

#include <stdio.h>

#include <libxml/xmlreader.h>
#include <libxml/catalog.h>
#include <libxml/parser.h>

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>
<!DOCTYPE catalog
  PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
         "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>

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

  <group xml:base="http://tokai.ipv4.liberouter.org/";>
    <public publicId="1.0"
            uri="netopeer.rng"/>
  </group>
  <group xml:base="./">
    <system systemId="1.0"
            uri="netopeer.rng"/>
  </group>
</catalog>


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