[xml] libxml2: xmlcatalog --sgml --noout --add <catalog> generates odd behavior



Hi All,

I don't have the latest versions of libxml2/libxslt because they won't install on my FC2 machine. Here are the versions:

libxml2-2.6.8-1
libxslt-1.1.5-1

I noticed the odd behavior while packaging simplified docbook. I simply wanted to register the central/package catalog /etc/sgml/docbook-simple.cat in the root catalog /etc/sgml/catalog.

I used the command:

/usr/bin/xmlcatalog --sgml --noout --add \ "/etc/sgml/docbook-simple.cat"

The odd behavior is that xmlcatalog actually modified the docbook-simple.cat file, by removing any comments and also removing the
'OVERRIDE YES'
SGML catalog directive.

(Yes, I know I can also use /usr/bin/install-catalog, but that does something quite funky as well: it adds a
'CATALOG "/etc/sgml/catalog"' line to the end of docbook-simple.cat.)

Attached is the docbook-simple.cat file.

I can work around this, but thought I should nonetheless report it.

Thanks,
Mark
--
----------------------------------------------------------
Mark Johnson                     <mjohnson redhat com>
OS Product Documentation Group
Engineering, Red Hat, Inc.       <http://www.redhat.com>
Tel: 919.754.4151                Fax: 919.754.3708
GPG fp: DBEA FA3C C46A 70B5 F120  568B 89D5 4F61 C07D E242

-- BEGIN OASIS TR 9401:1997 catalog for docbook-simple V1.0 --
OVERRIDE YES
PUBLIC "-//OASIS//DTD Simplified DocBook XML V1.0//EN" "/usr/share/xml/docbook/simple/1.0/sdocbook.dtd"
PUBLIC "-//OASIS//DTD Simplified DocBook RefEntry XML V1.0//EN" 
"/usr/share/xml/docbook/simple/1.0/sdocbookref.dtd"
SYSTEM "http://www.oasis-open.org/docbook/xml/simple/1.0/sdocbook.dtd"; 
"/usr/share/xml/docbook/simple/1.0/sdocbook.dtd"
SYSTEM "http://www.oasis-open.org/docbook/xml/simple/1.0/sdocbookref.dtd"; 
"/usr/share/xml/docbook/simple/1.0/sdocbookref.dtd"
-- END OASIS TR 9401:1997 catalog for docbook-simple V1.0 --


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