[XML-SIG] 4suite and pyxml, bug report

Jérôme Marant jmarant@free.fr
10 Jan 2002 20:03:33 +0100



  I received a bug report about the 4suite debian package.
  I recently release python-xml 0.7 without xslt and xpath in order
  to avoid conflicts with current 4suite (0.11.1).

  However, there seem to be incompatibility problems.

  Do you have any clue?

  Thanks in advance.

Content-Type: message/rfc822
Content-Disposition: inline

X-From-Line: debbugs@master.debian.org Thu Jan 10 19:39:44 2002
Return-path: <debbugs@master.debian.org>
Envelope-to: jerome@localhost
Received: from chinon ([] helo=localhost)
	by chinon with esmtp (Exim 3.33 #1 (Debian))	id 16Ok76-000075-02
	for <jerome@localhost>; Thu, 10 Jan 2002 19:39:44 +0100
Delivered-To: online.fr-jerome.marant@free.fr
Received: from imap.free.fr []
	by localhost with IMAP (fetchmail-5.9.6)
	for jerome@localhost (single-drop); Thu, 10 Jan 2002 19:39:44 +0100 (CET)
Received: (qmail 4327 invoked from network); 10 Jan 2002 15:18:56 -0000
Received: from master.debian.org (
  by mrelay1-2.free.fr with SMTP; 10 Jan 2002 15:18:56 -0000
Received: from debbugs by master.debian.org with local (Exim 3.12 1 (Debian))
	id 16Ogxv-0003SN-00; Thu, 10 Jan 2002 09:18:03 -0600
X-Loop: owner@bugs.debian.org
Subject: Bug#128604: python2.1-4suite: Incompatible with python2.1-xml (namespace problem)
Reply-To: Thomas Leonard <tal00r@ecs.soton.ac.uk>, 128604@bugs.debian.org
Resent-From: Thomas Leonard <tal00r@ecs.soton.ac.uk>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Jerome Marant <jerome@debian.org>
Resent-Date: Thu, 10 Jan 2002 15:18:01 GMT
Resent-Message-ID: <handler.128604.B.101067522810588@bugs.debian.org>
X-Debian-PR-Message: report 128604
X-Debian-PR-Package: python2.1-4suite
Received: via spool by submit@bugs.debian.org id=B.101067522810588
          (code B ref -1); Thu, 10 Jan 2002 15:18:01 GMT
From: Thomas Leonard <tal00r@ecs.soton.ac.uk>
To: submit@bugs.debian.org
X-Mailer: bug 3.3.10
Message-Id: <E16OgmM-0004jK-00@everest.ecs.soton.ac.uk>
Date: Thu, 10 Jan 2002 15:06:06 +0000
Delivered-To: submit@bugs.debian.org
Resent-Sender: Debian BTS <debbugs@master.debian.org>
Lines: 56
Xref: chinon mail.bugs-debian:1999
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Package: python2.1-4suite
Version: 0.11.1-5
Severity: important

The current version of python2.1-xml does not allow a namespace
of ''; instead, None must be used. XSLT at least hasn't been
updated and therefore doesn't work at all. Eg, from the examples
directory, running the command given at the top of the README:

/usr/share/doc/python2.1-4suite/examples/demo/Xslt>4xslt addr_book1.xml
Traceback (most recent call last):
  File "/usr/bin/4xslt", line 3, in ?
    _4xslt.XsltCommandLineApp().run() File
"/usr/lib/python2.1/site-packages/Ft/Lib/CommandLine/CommandLineApp.py", line
87, in run cmd.run_command(self.authenticationFunction) File
"/usr/lib/python2.1/site-packages/Ft/Lib/CommandLine/Command.py", line 83, in
run_command self.function(self.clOptions, self.clArguments) File
"/usr/lib/python2.1/site-packages/_xmlplus/xslt/_4xslt.py", line 113, in Run
outputStream=out_file) File
"/usr/lib/python2.1/site-packages/_xmlplus/xslt/Processor.py", line 167, in
runUri if not ignorePis and self.checkStylesheetPis(src, uri): File
"/usr/lib/python2.1/site-packages/_xmlplus/xslt/Processor.py", line 240, in
checkStylesheetPis baseUri) File
"/usr/lib/python2.1/site-packages/_xmlplus/xslt/Processor.py", line 101, in
appendStylesheetUri sty = self._styReader.fromUri(styleSheetUri, baseUri) File
"/usr/lib/python2.1/site-packages/_xmlplus/xslt/StylesheetReader.py", line 579,
in fromUri ownerDoc, stripElements) File
"/usr/lib/python2.1/site-packages/Ft/Lib/ReaderBase.py", line 76, in fromUri rt
= self.fromStream(stream, newBaseUri, ownerDoc, stripElements) File
"/usr/lib/python2.1/site-packages/_xmlplus/xslt/StylesheetReader.py", line 622,
in fromStream sheet.setup() File
"/usr/lib/python2.1/site-packages/_xmlplus/xslt/Stylesheet.py", line 140, in
setup self._setupChildNodes() File
"/usr/lib/python2.1/site-packages/_xmlplus/xslt/Stylesheet.py", line 183, in
_setupChildNodes curr_node.setup() File
"/usr/lib/python2.1/site-packages/_xmlplus/xslt/TemplateElement.py", line 46, in
setup namespaces=self._nss File
"/usr/lib/python2.1/site-packages/_xmlplus/xpath/Util.py", line 83, in
ExpandQName split_name = (nss[prefix], local) KeyError

Of course, this makes all programs using XSLT fail...


-- System Information
Debian Release: 3.0
Kernel Version: Linux everest 2.2.18pre21 #7 Fri Apr 13 14:24:24 BST 2001 i686 unknown

Versions of the packages python2.1-4suite depends on:
ii  libc6          2.2.4-7        GNU C Library: Shared libraries and Timezone
ii  python2.1      2.1.1-8        An interactive object-oriented scripting lan
ii  python2.1-dev  2.1.1-8        Header files and a static library for Python
ii  python2.1-xml  0.7-1          XML tools for Python (2.1.x)

Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Jérôme Marant <jerome@marant.org>