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



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?

BTW the background of this question is my intention to use xmlcatalog in a
configure script in order to test the accessibility of stylesheets. xmlcatalog
seems to come in handy here.

regards,
Markus

-- 
Markus Hoenicka
markus hoenicka cats de
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de




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