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

Mike Hommey Mike Hommey <mh@glandium.org>, 261409@bugs.debian.org
Fri, 30 Jul 2004 00:18:47 +0900


On Thu, Jul 29, 2004 at 02:37:52PM +0200, Kjetil Kjernsmo wrote:
> On onsdag 28. juli 2004, 16:40, Mike Hommey wrote:
> 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? 

for the latter, use "-" as the file name for whichever between xml or
xsl you want to get 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. 

That makes sense ;)

> 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...?

Yes, too much tolerance over mistakes might be the reason why older versions
would bring you what you think would be the good result while the specs
don't really want it to happen.

Anyway, I'd be curious to see exactly what's beeing occured. Would you
mind sending me all necessary files to "simulate" the pipeline through
xsltproc ?

Thanks

Mike