Re: [xslt] Using catalog files on Windows

On Sat, Mar 09, 2002 at 06:36:52PM +0100, Jirka Kosek wrote:
> Hi,
> I tried to use xsltproc on Windows to process DocBook files. However I
> was unable to setup catalog files to work -- I tried both SGML catalog
> and XML catalogs, but it seems that xsltproc ignores them absolutely. 

  Well it implements both,

> Documentation says that root XML catalog file should be in
> file:///etc/xml/catalog. Where is this file expected on Windows box? (I
> tried c:\etc\xml, but it doesn't work.)

  Well I don't know what file:///etc/xml/catalog means on Windows ...
possibly \etc\xml\catalog i.e. on the same drive as the current one.
  The code of the catalog is actually libxml related not libxslt specific.
Igor, the Windows port maintainer, can probably enligthen us about what should
be the proper path and the associated URL.

> I'm using catalog files successfully with Saxon and other programs, so

  wellll ... the setup doesn't look trivial either ;-)

> my catalog files should be OK.

  Well you can try to guess the valid filename or URL which will work
and set them as environment variables SGML_CATALOG_FILES or XML_CATALOG_FILES
The routine will end up using open() to load the file.

  You can set the XML_DEBUG_CATALOG environment variable to get some
information from the catalog processing layer to understand what's happening.


Daniel Veillard      | Red Hat Network  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

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