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

Kjetil Kjernsmo Kjetil Kjernsmo <kjetil@kjernsmo.net>, 261409@bugs.debian.org
Thu, 29 Jul 2004 14:37:52 +0200


On onsdag 28. juli 2004, 16:40, Mike Hommey wrote:
> Mmmmm I'd say it looks like your stylesheet is broken. I've
> personnally experienced similar mistakes several times :-p

Right! Confusing stuff it is....

> I'd say that you should be able to reproduce the "bug" with xsltproc
> by launching xsltproc <your xslt file> <the xml file that goes
> through the xslt>.
> If you could provide these two files, I should be able to tell you
> what is wrong with it.

Well, it is rather complex... I've got some 5 .xsl files involved, 
partly in a pipeline, and partly by importing it. I couldn't find a way 
to make xsltproc process all the PI's in the XML, nor did I found a way 
it could take XML from stdin? 

Nevertheless, what I found is that in one of my stylesheets, I had 
defined a html: prefix, which I used for all XHTML elements, and no 
default namespace. Apparently, the prefix was inherited through the 
pipeline, and was the cause of the error. 

Processing with a lot of files rather than a pipeline, it seems like 
xsltproc's behaviour is identical to that of AxKit. 

I have always thought that prefix, whatever it is, whether it is just 
the default namespace or a prefix at all, is irrelevant, is long as the 
URI is correct... The old behaviour seemed to support that, but it 
seems to me that perhaps the old behaviour was faulty, since namespace 
code fixups was the major new thing in this version...?
 
Cheers,

Kjetil
-- 
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
kjetil@kjernsmo.net  webmaster@skepsis.no  editor@learn-orienteering.org
Homepage: http://www.kjetil.kjernsmo.net/        OpenPGP KeyID: 6A6A0BBC