Description

XML/Xslt processing does not work in 1.3.3. A NameError (global name 'page' is not defined ) is triggered in xslt.py.

Steps to reproduce

  1. enable allow_xslt
  2. check XsltVersion (has to remove all the lines before <?xml... first).

or see example below.

Example

URL: http://id00243.id.tue.nl/XsltVersion

Details

MoinMoin Version

1.3.3

OS and Version

Fedora Core 3

Python Version

2.3.4

Server Setup

Apache

Server Details

4Suite 1.0-3 installed. but version info is "N/A" in SystemInfo

Workaround

Last update:

This patch is made by fanbanlo.

Patch (beta?): xslt.py.diff (included in moin--main--1.3--patch-644)

In XsltVersion, change 1st line of code to <?xml version="1.0"?> (remove encoding=...)

Discussion

2005-02-10 - I had a similar problem. I changed page to formatter.page. Now the page is blank. In the apache error log I see: Objects/stringobject.c:110: PyString_FromString: Assertion `str != ((void *)0)' failed. This is on FC3, python 2.3.4, 4suite 1.0a4., moin 1.3.3

I tried enabling XML and got the "page" problem above. Patched that, and then found that "SchemeRegistryResolver" has moved from the "Ft.Lib.Uri" module to "Ft.Lib.Resolvers". I added this to xslt.py at line 86:

                elif ft_version == "1.0a4":
                    from Ft.Lib.Resolvers import SchemeRegistryResolver as MoinResolver

but then I just got the "decoding Unicode is not supported" error. Moin 1.3.3 on Mac OS X 10.3.8 with 4Suite 1.0a4. RichardBrooksby 2005-02-16 23:08:34

Plan


CategoryMoinMoinBugFixed CategoryRelease1.3.4

MoinMoin: MoinMoinBugs/XsltDoesNotWork (last edited 2007-10-29 19:13:48 by localhost)