Re: [xml] nextCatalog support in 'xmlcatalog'



On Tue, Feb 04, 2003 at 05:25:41PM +0300, Vitaly Ostanin wrote:
Hello!

I'm trying using 'xmlcatalog' (part of libxml2-2.4.30) for
manipulating of XML Catalog entries with type 'nextCatalog':

# xmlcatalog --noout --add "nextCatalog" \
"file:///usr/share/xml/website/catalog.xml" "" /etc/xml/catalog

It worked, but entries added even if such values already exists.
So, if I run twice:
# xmlcatalog --noout --add "nextCatalog" \
"file:///usr/share/xml/website/catalog.xml" "" /etc/xml/catalog

then in /etc/xml/catalog:
<nextCatalog
catalog="file:///usr/share/xml/website/catalog.xml"/> 
<nextCatalog
catalog="file:///usr/share/xml/website/catalog.xml"/>

This is correct? Should I fill a bug report ?

  Hum,
http://www.oasis-open.org/committees/entity/spec-2001-08-06.html#s.nextcatalog
 having multiple nextCatalog is possible, and makes sense, but having
the same catalog referenced mutiple time is not useful. It is not an error
but it is useless. That could be checked within xmlcatalog, right, but
it seems to me that the addition should not be made blindly either.

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][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]