Re: [xml] attach a local catalog

On Mon, Sep 02, 2002 at 09:38:14AM -0400, Michael Rothwell wrote:
Daniel Veillard wrote:

 Use the catalog PI
   <?oasis-xml-catalog catalog="";?>

Is there a way to do it programmatically, so that the incoming 
stylesheets do not have to be modified before they are loaded?

  have a specific catalog per document  ??? (or reformulate your request)
Look at include/libxml/catalog.h, there are 4 entry points for 
per-document catalogs, especially xmlCatalogAddLocal(), which is
used once in the code as:
  parser.c:     ctxt->catalogs = xmlCatalogAddLocal(ctxt->catalogs, URL);
 you will have to do something similar (i.e. add the catalog programmatically
to the parsing context).


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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