Re: [xml] attach a local catalog
- From: Daniel Veillard <veillard redhat com>
- To: Michael Rothwell <rothwell holly-springs nc us>
- Cc: xml gnome org
- Subject: Re: [xml] attach a local catalog
- Date: Mon, 2 Sep 2002 11:06:44 -0400
On Mon, Sep 02, 2002 at 09:38:14AM -0400, Michael Rothwell wrote:
Daniel Veillard wrote:
Use the catalog PI
<?oasis-xml-catalog catalog="http://example.com/catalog.xml"?>
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
--
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]