Description

If the text_docbook parser is used with version 1.73 of the DocBook XSL Stylesheets, 4Suite gives an XSLT processing exception with a message like "Named template '(None, u'log.message')' already defined with same import precedence".

Steps to reproduce

  1. Try viewing any DocBook page in Moin, so that Moin has allow_xslt = True and docbook_html_dir pointing to version 1.73 or 1.73.1 of the DocBook XSL Stylesheets

  2. MoinMoin should show an error message like "Named template '(None, u'log.message')' already defined with same import precedence" and raw DocBook markup of the page

Component selection

Details

MoinMoin Version

1.7dev, probably 1.5 and 1.6dev too, not tested, though

OS and Version

Fedora 7

Python Version

2.5

Server Setup

Standalone

Workaround

There will be a better workaround for this in docbook-xsl 1.73.2, thanks to Michael Smith, see the SVN commit: http://docbook.svn.sourceforge.net/viewvc/docbook?view=rev&revision=7267

1.73.2 is released, upgrading to at least that version is recommended if you are seeing this problem.

Here's a quick fix, also proposed by Michael Smith (rather upgrade, though):

--- /home/viltsu/tiedostot/tar/docbook-xsl-1.73.1/html/docbook.xsl      2007-08-09 10:48:42.000000000 +0300
+++ docbook-xsl-1.73.1/html/docbook.xsl 2007-08-22 11:51:31.000000000 +0300
@@ -72,7 +72,7 @@
 <xsl:include href="chunker.xsl"/>
 <xsl:include href="html-rtf.xsl"/>
 <xsl:include href="annotations.xsl"/>
-<xsl:include href="../common/stripns.xsl"/>
+<!-- <xsl:include href="../common/stripns.xsl"/> -->

 <xsl:param name="stylesheet.result.type" select="'html'"/>
 <xsl:param name="htmlhelp.output" select="0"/>

Applying this patch shouldn't break any functionality, but still be careful.

4Suite developer Uche Ogbuji has told me on IRC that the bug in 4Suite should also be fixed and will be in an upcoming release (I'm writing this on September 2007).

Discussion


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/XsltErrorWithDocBook1.73 (last edited 2008-02-03 11:41:59 by ThomasWaldmann)