Re: xslt transformation working fine with IIS server but not with Apache
Emmanouil Batsis <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Hi Eve,
Eve wrote:
[...]
> In other words, does it has absolutely to be configure on the server
> itself ?
You can try using an XmlHttpRequest instead of XMLDocument.load. The
reason is that with XMLHttpRequest you can:
var tmp = new XMLHttpRequest();
tmp.open("GET", sURI, false);
// override the mime type
tmp.overrideMimeType("text/xml");
tmp.send(null);
// get the result as a DOM
var oDoc = tmp.responseXML;
However, please consider configuring your server properly. It's for the
common good ;-)
BTW, since your are trying to use this in both IE and Moz (I saw your if
statements) you may be interested in sarissa [1], a crossbrowser API for
these things.
[1] http://sarissa.sourceforge.net/
Cheers,
MAnos