Opened 14 years ago

Closed 13 years ago

Last modified 10 years ago

#22708 closed defect (fixed)

docbook2X uses the wrong XML catalog

Reported by: neil_mayhew@… Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: docbook2X

Description

db2x_xsltproc sets the hardcoded value /etc/xml/catalog into XML_CATALOG_FILES isn't already set in the environment. This should probably be "${prefix}/etc/xml/catalog /etc/xml/catalog" instead, so it can pick up DTDs from MacPorts.

This can be tested as follows, using one of the test documents (eg leidert-example.xml) from the docbook2X source or from CVS:

docbook2man leidert-example.xml

This results in the error:

I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd

BTW, I think docbook-xml should probably be added as a dependency of docbook2X since it doesn't work without locally-stored DTDs.

Change History (4)

comment:1 in reply to:  description Changed 14 years ago by neil_mayhew@…

And it does work if you set XML_CATALOG_FILES="/opt/local/etc/xml/catalog /etc/xml/catalog" first.

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to markd@…

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:4 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.