Re: [xml] xmlcatalog: discrepancy between shell and command line usage



On Mon, Oct 18, 2004 at 01:32:08PM +0200, Markus Hoenicka wrote:
Hi,

I came across this somewhat unexpected behaviour of xmlcatalog:

markus mortimer ~/prog/refdb-0.9.5-pre6$ xmlcatalog --shell public
http://docbook.sourceforge.net/release/xsl/current/nonexistent/docbook.xsl
No entry for PUBLIC
http://docbook.sourceforge.net/release/xsl/current/nonexistent/docbook.xsl

markus mortimer ~/prog/refdb-0.9.5-pre6$ xmlcatalog /etc/xml/catalog
http://docbook.sourceforge.net/release/xsl/current/nonexistent/docbook.xsl
file:///usr/share/xml/docbook/stylesheet/nwalsh/nonexistent/docbook.xsl

That is, xmlcatalog correctly reports that there is no such entry in
the catalog only if used in the shell mode. When used from the command
line, it apparently only rewrites the path from an URL to a local file
path, regardless of whether such an entry exists.

It is probably an incorrect expectation on my side that both commands are
equivalent. If the command-line version is indeed meant for a different
purpose, would it be possible to add a command-line version of the shell
command?

  xmlcatalog cannot check the output of a rewriteURL actually exists.
The problem is in your catalog file, not in xmlcatalog IMHO.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://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]