--- Begin Message ---
Re: Bug#570582: dblatex: completely broken if xsltproc is not installed
Sun, 21 Feb 2010 09:11:24 +0100
I want to inform you about dblatex Debian BTS report #570582 :
using the 4xslt processor instead of xsltproc does not work with dblatex
0.2.12 (I've identified the last working version as 0.2.10).
Although the failure example given by the reporter is caused by wrong
usage (he assumes some automatism that falls back to 4xslt when xsltproc
isn't installed), issuing the appropriate call 'dblatex -m 4xslt' on an
arbitrary docbook document fails. The XsltParserException thrown by
Top level variable (None, u'set.book.num') has duplicate definitions
with the same import precedence. (see XSLT 1.0 sec. 11)
Indeed the variable is defined in preamble.xsl as well as set.xsl.
4xslt seems to be more picky about this issue than xsltproc.
Even after removing one definition, still no PDF file is created,
because in file dbtex.py method Document.build_doclist() assumes
multiple instead of single setup erroneously:
Whereas in single setup case in XsltProc.run() file doclist.txt is not
created at all, in FourXslt.run() it gets created _empty_, which
switches to multiple setup.
 patches the problems provisorily, however as usual any improvements
respectively official solutions are welcome.
Description: Patch for 4xslt support
Andreas Hoenen <[email protected]>
A4A6 E8B5 593A E89B 496B
82F0 728D 8B7E B888 D2CE
--- End Message ---