xsl-list
[Top] [All Lists]

Re: [xsl] Strange Opera bug ?

2007-07-05 10:23:02
On 05/07/07, Martin Honnen <Martin(_dot_)Honnen(_at_)gmx(_dot_)de> wrote:
Manfred Staudinger wrote:

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

Which version of Opera is that exactly?
9.21

> 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?
xy.js does not exist. The transformation fails, so nothing is interpreted.

> <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.
You and David are right, but with method="xml" it's the same.
I think I have tried _all_ variants I can think of, but no chance.

Manfred

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>