Subject: Re: Repost: IE applies transformation, Fx does not
From: "Manfred Staudinger" <manfred.staudinger@xxxxxxxxx>
Date: Tue, 4 Apr 2006 03:59:28 -0700
|
The difference stems from the fact, that instead of XMLHTTPrequest, I'm
using the location.replace method for retrieving the xml in IE (to
avoid activX).
This method triggers (unexpected by me) a XSLT transformation, if the xml
contains a PI for the stylsheet (in _all_ xslt enabled browsers).
Regards, Manfred
On 29/03/06, Manfred Staudinger <manfred.staudinger@xxxxxxxxx> wrote:
> Hi list,
> I've a xml file with a PI specified:
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet href="../view_names.xsl" type="text/xsl"?>
> <doc xmlns="http://www.w3.org/1999/xhtml">
> ...
> </doc>
> When I invoke a file like this with the browser, the file is fetched,
> gets transformed
> and the result is displayed, for both Fx 1.5 and IE 6.0 (MSXML 3).
> When I fetch the same file via javascript httprequest, then IE applies the
> transformation automatically before giving me access to the result-tree,
> whereas Fx (also Opera 9.0 beta) gives me the xml input-tree.
>
> Is this difference documented anywhere?
> May I prevent that transformation on IE somehow?
>
> Regards, Manfred
|