Re: [xsl] Strange Opera bug ?

Subject: Re: [xsl] Strange Opera bug ?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 05 Jul 2007 18:49:53 +0200
Manfred Staudinger wrote:

The stylesheet below triggers a "XSLT processing failed!" in Opera.

Which version of Opera is that exactly?


It works fine with Saxon 6.5.5, MSXML3 and Fx 2.0.0.4. The failing
part is
      <script src="xy.js" type="text/javascript"/>

Does xy.js exist? Does the error occur with certain script statements (e.g. document.write) or does it occur in general?



<xsl:output method="html"
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
    omit-xml-declaration="yes" indent="no" />
<xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml"; lang="de">

I am not sure that will help but I fail to see how using output method="html" together with an XHTML doctype and an XHTML namespace makes any sense. Output method="html" would serialize recognized HTML elements in _no namespace_ according to HTML rules but you do not have any such elements. The only meaningful output method for XHTML 1.0 with XSLT 1.0 is xml in my view. XSLT 2.0 has output method xhtml.




--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread