Bug#293989: [xml/sgml-pkgs] Bug#293989: xsl stylesheet does not work anymore

Mike Hommey Mike Hommey <mh@glandium.org>, 293989@bugs.debian.org
Mon, 7 Feb 2005 15:38:32 +0100


reassign 293989 db2latex-xsl
retitle 293989 improper use of duplicate named templates
thanks

On Mon, Feb 07, 2005 at 12:33:46PM +0100, Wichert Akkerman <wichert@wiggy.net> wrote:
> Package: db2latex-xsl
> Version: 0.8pre1-2
> Severity: grave
> 
> I am suddenly getting this on every run:
> 
> [typhoon;..nTest/trunk/newdoc]-100> make manual.tex
> xsltproc --output manual.tex manual.xsl manual.xml
> compilation error: file file:///usr/share/xml/docbook/stylesheet/db2latex/latex/qandaset.mod.xsl line 366 element template
> xsl:template: error duplicate name 'question.answer.label'
> make: *** [manual.tex] Error 5
> zsh: exit 2     make manual.tex

Taken from:
http://www.w3.org/TR/xslt#named-templates

"It is an error if a stylesheet contains more than one template with the
same name and same import precedence."

Thus, libxslt changed its broken behaviour to actually follow the XSLT
specification. Yes, it breaks broken stylesheets, but the breakage is
not in libxslt.

Reassigning to db2latex-xsl.

Mike