[xml/sgml-pkgs] Bug#261409: marked as done (libxslt1.1: HTML output method fails with AxKit)

Debian Bug Tracking System owner@bugs.debian.org
Thu, 29 Jul 2004 09:48:10 -0700


Your message dated Fri, 30 Jul 2004 01:44:12 +0900
with message-id <20040729164412.GB9665@vaio.glandium.org>
and subject line [xml/sgml-pkgs] Bug#261409: libxslt1.1: HTML output method fails with AxKit
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Jul 2004 20:56:37 +0000
>From kjetil@kjernsmo.net Sun Jul 25 13:56:37 2004
Return-path: <kjetil@kjernsmo.net>
Received: from pooh.kjernsmo.net [217.77.32.186] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Boq2v-0000yL-00; Sun, 25 Jul 2004 13:56:37 -0700
Received: from ti100710a080-2040.bb.online.no ([80.213.231.248])
	by pooh.kjernsmo.net with esmtp (Exim 4.34)
	id 1Boq2Q-0008Af-3m
	for submit@bugs.debian.org; Sun, 25 Jul 2004 22:56:06 +0200
From: Kjetil Kjernsmo <kjetil@kjernsmo.net>
To: submit@bugs.debian.org
Subject: libxslt1.1: HTML output method fails with AxKit
Date: Sun, 25 Jul 2004 22:56:17 +0200
User-Agent: KMail/1.6.2
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <200407252256.17821.kjetil@kjernsmo.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: libxslt1.1
Version: 1.1.8-2
Severity: important

I have just tried an upgrade on some of my boxes, first I tried a
backport, now the libxslt1.1 in unstable on my otherwise Sarge
system development system. The result is the same on all my systems:

I'm developing an application using AxKit, which uses a pipeline of
XSLTransformations. The transformations use XML::LibXSLT, currently in
version 1.57, which in turn uses libxslt to do the hard work. 

Both AxKit and the XML::-perl modules are installed on my system from
CPAN rather than Debian packages. 

The last stylesheet in the pipeline has the following element:
  <xsl:output method="html" encoding="utf-8"
    media-type="text/html" indent="yes"/>

This should make sure the output is HTML, if I have understood it
correctly. With 1.1.7 it does, with 1.1.8 it doesn't. When reverting
back to 1.1.7, it works again... 

That's why I'm assuming it has something to do with the recent
package... :-) By "doesn't work", I can't say much
beyond that HTML is not returned, that is the output method
declaration has no effect. I can't see any relevant error messages in
my Apache error logs, in spite of having the log level to max.

I have set the severity to important. Please do not hesitate to change
it if that's inappropriate. To me, this is a real show-stopper, but of
course, it could be something that only appears with my combination of
software. I have asked on the axkit-users mailing list if anybody else
has seen this problem, but none have so far reported anything. 

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-ruby.2004-07-25.owl.1.oss
Locale: LANG=C, LC_CTYPE=C

Versions of packages libxslt1.1 depends on:
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared 
libraries an
ii  libxml2                     2.6.11-2     GNOME XML library
ii  zlib1g                      1:1.2.1.1-3  compression library - 
runtime

-- no debconf information

---------------------------------------
Received: (at 261409-done) by bugs.debian.org; 29 Jul 2004 16:44:22 +0000
>From mh@glandium.org Thu Jul 29 09:44:22 2004
Return-path: <mh@glandium.org>
Received: from d186.haichifl2.vectant.ne.jp (glandium.org) [220.247.10.186] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BqE10-0005rC-00; Thu, 29 Jul 2004 09:44:22 -0700
Received: from mh by glandium.org with local (Exim 3.36 #1 (Debian))
	id 1BqE0q-0005lv-00; Fri, 30 Jul 2004 01:44:12 +0900
Date: Fri, 30 Jul 2004 01:44:12 +0900
From: Mike Hommey <mh@glandium.org>
To: Kjetil Kjernsmo <kjetil@kjernsmo.net>
Cc: 261409-done@bugs.debian.org
Subject: Re: [xml/sgml-pkgs] Bug#261409: libxslt1.1: HTML output method fails with AxKit
Message-ID: <20040729164412.GB9665@vaio.glandium.org>
References: <200407252256.17821.kjetil@kjernsmo.net> <200407291437.52011.kjetil@kjernsmo.net> <20040729151846.GA9665@vaio.glandium.org> <200407291747.22166.kjetil@kjernsmo.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200407291747.22166.kjetil@kjernsmo.net>
User-Agent: Mutt/1.5.6+20040722i
Delivered-To: 261409-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

On Thu, Jul 29, 2004 at 05:47:22PM +0200, Kjetil Kjernsmo wrote:
> Not at all! I'm attaching a .tar.gz of everything you should need, and a 
> bit more. :-) It is from /var/www of my test system (which happens to 
> be my workstation), and there are some hardcoded paths in there. 
> 
> news/submit.xsp is the file that AxKit use to generate the stuff XSLT is 
> applied on, but you might want to run xsltproc on news/testsubmit2.xml, 
> which is an example of a run through the XSP processor. 
> 
> It is the control-html.xsl file that contains the problematic 
> html:-prefixed namespace. 
> 

Wow, that was a pretty impressive namespace problem in previous libxslt
that has been fixed and that you hit.
Considering the stylesheets you are using and how you are using them,
the correct result is the 1.1.8 one. The solution to get rid of that
is to remove the html prefix in the control-html.xsl file, not
forgetting to add the xhtml uri to the default namespace.
There are maybe some other possible solutions with namespaces aliases
and stuff, but I'm not quite sure.
I'm closing the bug for now, since the actual bug was in the previous
versions. If you still need some help with your stylesheets, just
contact me by private message (i.e. not Ccing the bug on the BTS), I'll
try my best to help you.

Mike