hi folks,
i've seen many examples on microsoft.com, showing how to load XML and
XSL in a html page, through javascript, for client machine where MS
XSL 3 was installed in side by side mode (my users can't be in
replace mode).
an example :
<script language="javascript">
function putXML()
{
// Load data.
var source = new ActiveXObject("Msxml2.DOMDocument"
source.async = false;
source.load("books.xml"
// Load style sheet.
var stylesheet = new ActiveXObject("Msxml2.DOMDocument"
stylesheet.async = false
stylesheet.load("sample.xsl"
// Fill a div tag with the result of the transform
xslTarget.innerHTML = source.transformNode(stylesheet);
}
</SCRIPT>
but i found nothing about doing the same with data islands. In this
example, an xml file is loaded. But if i do have an html page this
way :
<html>
<head>
<title>XML Data Binding Demo</title>
</head>
<body>
<xml id="data">
<?xml version="1.0"?>
<!XML goes here -->
</xml>
<DIV id="xslTarget"></DIV>
</body>
</html>
what should i do ?
Best regards,
Elise, XML learning girl X-)