Re: [xsl] Diferent behaviour using document() in IE / FF

Subject: Re: [xsl] Diferent behaviour using document() in IE / FF
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Sep 2005 12:38:37 +0100
> This looks prima facie like an FF bug.
> Michael Kay

I suspect that it's the issue that I raised as a bug some years back but
was rejected as a useful feature.

Arguably it's conformant as a system can do pretty much anything it
likes getting from a file on a server to an xpath node tree.

basically if an xml file has a <?xml-stylesheet instruction then that
stylesheet gets applied _always_ whenever the xml parser is invoked.
It's possible to use this as a cheap and cheerful pipelining process,
but I think it's fairly broken really.

It bit me as I had <?xml-stylesheet instructions on my stylesheets
coverting them to html for documentation purposes, and it was this html
that was being applied rather than the stylesheet itself if any other
document referenced a stylesheet, that is nothing worked until i removed
the documentation stylesheet reference.
Worst was the documentation stylesheet which had an xml-stylesheet link
to itself and put mozilla into an infinite loop (this was accepted as a
bug and fixed as I recall).

I think that (in both ie and mozilla) one can access the original xml
dom and the transformed dom from script, so the information is there,
somewhere, but it's a while since I looked into this...

couldn't find my old report (bugzilla doesn't seem to go that far back)
appears to be relevant (and recent)


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

Current Thread