Hi Mark, Eric and all,
the following works:
function displayResult()
{
var xmlRequest = new XMLHttpRequest();
xmlRequest.open("GET", "cdcatalog.xml", false);
xmlRequest.send(null);
xml= xmlRequest.responseXML;
var xslRequest = new XMLHttpRequest();
xslRequest.open("GET","cdcatalog.xsl", fals
Pierre,
On 18/02/2008, at 02:10, Pierre Bernard wrote:
function loadXMLDoc(fname)
{
var xmlDoc;
xmlDoc=document.implementation.createDocument("","",null);
xmlDoc.async=false;
xmlDoc.load(fname);
return(xmlDoc);
}
The code fails with the following error:
Value undefined (result of expressi
Hi Eric,
Running Safari 3.1, this produces no output, when entered at http://www.w3schools.com/xsl/tryit.asp?filename=cdcatalog
:
function loadXMLDoc(fname)
{
var xmlDoc;
xmlDoc=document.implementation.createDocument("","",null);
xmlDoc.async=false;
xmlDoc.load(fname);
return(xmlDoc);
}
Safari 3.0 and later supports XSLTProcessor.
You can use that. The FAQ is wrong:
http://developer.apple.com/internet/safari/faq.html#anchor21
Perhaps one of the Apple guys on this list can get it fixed.
-eric
On Sun, Feb 17, 2008 at 2:48 AM, Pierre Bernard <[EMAIL PROTECTED]> wrote:
> Hi!
>
>
Hi!
I would like to display XML with an XSL transformation.
I know the easy way is to have an iframe point at the XML. Here the
XML needs to refer to the XSL.
That's precisely what I want to avoid. I don't want the XML to know
about the XSL as I want it to be used with several different XSL
5 matches
Mail list logo