Adam Di Carlo <[EMAIL PROTECTED]> writes: > Makes me think about dh_installxmlcatalogs could check for conditions > like this. Having a FPI in a package but not covered by a root desclation > should trigger a warning. But maybe the package then would have to understand > more than we want it to...
I think it would be great if it were to trigger a warning during the package build. Running "xmlcatalog -v" also helps. Or running the Apache XML Commons Resolver with verbosity set ito 2. For example, here is the output from both tools prior to making the root/system change for the docbook.org URI. $ java org.apache.xml.resolver.apps.resolver system -s http://docbook.org/xml/4.4/docbookx.dtd Loading catalog: /etc/xml/catalog Resolve SYSTEM (systemid): system id: http://docbook.org/xml/4.4/docbookx.dtd Result: null $ xmlcatalog -v /etc/xml/catalog http://docbook.org/xml/4.4/docbookx.dtd Resolve sysID http://docbook.org/xml/4.4/docbookx.dtd 1076527232 Parsing catalog /etc/xml/catalog /etc/xml/catalog added to file hash Resolve URI http://docbook.org/xml/4.4/docbookx.dtd No entry for SYSTEM http://docbook.org/xml/4.4/docbookx.dtd No entry for URI http://docbook.org/xml/4.4/docbookx.dtd So you can see that it never gets past /etc/xml/catalog. Here is what the output looks like once the change is made. $ java org.apache.xml.resolver.apps.resolver system -s http://docbook.org/xml/4.4/docbookx.dtd Loading catalog: /etc/xml/catalog Resolve SYSTEM (systemid): system id: http://docbook.org/xml/4.4/docbookx.dtd Switching to delegated catalog(s): file:/etc/xml/docbook-xml.xml Loading catalog: file:/etc/xml/docbook-xml.xml Switching to delegated catalog(s): file:/usr/share/xml/docbook/schema/dtd/4.4/catalog.xml Loading catalog: file:/usr/share/xml/docbook/schema/dtd/4.4/catalog.xml Result: file:/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd $ xmlcatalog -v /etc/xml/catalog http://docbook.org/xml/4.4/docbookx.dtd Resolve sysID http://docbook.org/xml/4.4/docbookx.dtd 1076527232 Parsing catalog /etc/xml/catalog /etc/xml/catalog added to file hash file:///etc/xml/docbook-xml.xml not found in file hash 1076527232 Parsing catalog file:///etc/xml/docbook-xml.xml file:///etc/xml/docbook-xml.xml added to file hash Trying system delegate file:///etc/xml/docbook-xml.xml file:///usr/share/xml/docbook/schema/dtd/4.4/catalog.xml not found in file hash 1076527232 Parsing catalog file:///usr/share/xml/docbook/schema/dtd/4.4/catalog.xml file:///usr/share/xml/docbook/schema/dtd/4.4/catalog.xml added to file hash Trying system delegate file:///usr/share/xml/docbook/schema/dtd/4.4/catalog.xml Found system match http://docbook.org/xml/4.4/docbookx.dtd file:///usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd -Mike
signature.asc
Description: Digital signature