Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS XSL3 in side by side mode and data islands

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR

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=&quot;javascript&quot;>
function putXML()
{
// Load data.
var source = new ActiveXObject(&quot;Msxml2.DOMDocument&quot;);
source.async = false;
source.load(&quot;books.xml&quot;);

// Load style sheet.
var stylesheet = new ActiveXObject(&quot;Msxml2.DOMDocument&quot;);
stylesheet.async = false
stylesheet.load(&quot;sample.xsl&quot;);

// 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=&quot;data&quot;>
<?xml version=&quot;1.0&quot;?>
<!XML goes here -->
</xml>
<DIV id=&quot;xslTarget&quot;></DIV>
</body>
</html>


what should i do ?


Best regards,
Elise, XML learning girl X-)
 
i do ask this question because i saw this on MS.com :

&quot;data islands on Internet Explorer are an exception. When you create a data island on a Web page and reference it as an object, the object created is based on the version of MSXML used by the browser. &quot;

is there a way to use :
data island + msxsl 3 in side by side mode anyway ? Best regards,
Elise, XML learning girl X-)
 
never mind, i finaly found a way to transform the xml on the server, that would solve my problems... i hope :) Best regards,
Elise, XML learning girl X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top