[MacPorts] #22708: docbook2X uses the wrong XML catalog
MacPorts
noreply at macports.org
Fri Nov 27 11:30:48 PST 2009
#22708: docbook2X uses the wrong XML catalog
---------------------------------+------------------------------------------
Reporter: neil_mayhew@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: docbook2X
---------------------------------+------------------------------------------
{{{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
[http://docbook2x.cvs.sourceforge.net/viewvc/docbook2x/docbook2X/test/refentry
/leidert-example.xml?revision=1.1&view=markup 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.
--
Ticket URL: <http://trac.macports.org/ticket/22708>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list