[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: XML catalog question and comment
On Tue, Apr 23, 2002 at 02:48:27PM -0700, Eric Richardson wrote: > > Then I point the XSL processor to the catalog location. > > The catalog can resolve pathnames relative to > > the catalog file location. > > The command in the Makefile looks like this: > > > > XML_CATALOG_FILES=/usr/share/xml/catalog/catalog.xml \ > > xsltproc /tools/xsl/docbook/html/chunk.xsl input.xml > > > xsltproc has it's own implementation? well it reuses the one from libxml2 . The xmlcatalog tool comes with libxml2 too. > > BTW, if you are using xsltproc, you'll want > > to initially set the env variable XML_DEBUG_CATALOG=1 so you can > > see how each reference is being resolved. Very helpful > > for debugging unresolved references. > > > You obviously have a great system here. I never thought of using the > resolver to resolve URIs passed to the processor. yes that's very convenient, for example you can generalize the use of the stylesheet PI, make it point to the canonical URI for the XSLT and the catalog will be looked up automatically. 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] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC