Jose Abilio Oliveira Matos a écrit :
> On Sun, Sep 23, 2001 at 07:31:46PM +0200, ben wrote:
>
> Ok, after many dangers I have set all the needed files. I have run
> xml_config in ~/.lyx.
I admit that config is a bit heavy...
> No problem until...
>
> make[2]: Entering directory /home/jamatos/lyx/db2lyx-0.1.4/doc/html'
> xsltproc ../xsl/jrefhtml.xsl ../references/unsupported.ref.xml > unsupported.ref.html
>
> ../references/dtd/jrefentry/1.0/jrefentry.dtd:23: warning: failed to load
> external entity "/home/ben/share/archives/docbook/docbkx412/docbookx.dtd"
>
> Now this is a bug. :-)
Are you sure? ;-)
> Isn't the catalog able to deal with those cases? There are several
> possible solutions, which one is the easiest?
I see 3 solutions:
1. The public ID is resolved with the catalogs, *but* I've tried and it doesn't work.
Besides it would force user to have catalog support.
2. A clean way is to add a new entity in the xslpath.ent file that points to the
DocBook
DTD, and to refer to this entity in the jrefentry DTD. This is the most consistent way
(since every else path is managed like this). The disadvantages are: several files are
changed (but small and easy changes), and the jrefentry is not standard anymore (but
there is no reason to keep a DTD immaculate).
3. The easiest way is to add a new operation in the config_xml script so that it
patches
the jrefentry.dtd with the resolved DocBook DTD path. The advantage is that it changes
only 2 files, the disadvantage is that the config behaviour is specific for this case.
Personaly I prefer solution 2. What do you think? Have you seen other solutions?
BG