Bug#301157: Accepted docbook-xml 4.4-1 (all source)
Michael Smith [EMAIL PROTECTED] writes: Cool :) For some reason the system entities for http://docbook.org/xml/4.3/docbookx.dtd don't seem to be working. xmlcatalog /etc/xml/catalog 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 I register it the exact same way, but the OASIS ones work: xmlcatalog /etc/xml/catalog 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 Any clue for me? -- ...Adam Di Carlo...[EMAIL PROTECTED]...URL:http://www.onshored.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#301157: Accepted docbook-xml 4.4-1 (all source)
Adam Di Carlo [EMAIL PROTECTED] writes: For some reason the system entities for http://docbook.org/xml/4.3/docbookx.dtd don't seem to be working. xmlcatalog /etc/xml/catalog 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 The package isn't updating /etc/xml/catalog file such as way that http://docbook.org/xml/ system IDs get delegated to /etc/xml/docbook-xml.xml I think the fix is this: --- docbook-xml-4.4/debian/xmlcatalogs.orig 2005-04-22 01:07:30.666003008 +0900 +++ docbook-xml-4.4/debian/xmlcatalogs2005-04-22 01:08:01.539309552 +0900 @@ -6,6 +6,7 @@ root;public;-//Normal Walsh//Exchange Table Model 19960430 root;system;http://www.oasis-open.org/docbook/xml/ +root;system;http://docbook.org/xml/ local;3.1.7/catalog.xml;/usr/share/xml/docbook/schema/dtd/3.1.7/catalog.xml package;public;-//Norman Walsh//DTD DocBook XML V3;/usr/share/xml/docbook/schema/dtd/3.1.7/catalog.xml -- Michael Smith http://logopoeia.com/ http://www.oreillynet.com/pub/au/890 signature.asc Description: Digital signature
Bug#301157: Accepted docbook-xml 4.4-1 (all source)
Michael Smith [EMAIL PROTECTED] writes: I think the fix is this: --- docbook-xml-4.4/debian/xmlcatalogs.orig 2005-04-22 01:07:30.666003008 +0900 +++ docbook-xml-4.4/debian/xmlcatalogs 2005-04-22 01:08:01.539309552 +0900 @@ -6,6 +6,7 @@ root;public;-//Normal Walsh//Exchange Table Model 19960430 root;system;http://www.oasis-open.org/docbook/xml/ +root;system;http://docbook.org/xml/ local;3.1.7/catalog.xml;/usr/share/xml/docbook/schema/dtd/3.1.7/catalog.xml package;public;-//Norman Walsh//DTD DocBook XML V3;/usr/share/xml/docbook/schema/dtd/3.1.7/catalog.xml Ah, beautiful! I forgot about the root/system part. 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... -- .Adam Di [EMAIL PROTECTED]URL:http://www.debian.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#301157: Accepted docbook-xml 4.4-1 (all source)
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