henryhandle
Programmer
hello,
I 'm trying to transform
XML to XHTML in Browser
and i use this Javascript to make a Sever side transform:
<html><head><title>SML</title>
<script language="JavaScript">
function transformXXX(){
var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("myxml.xml")
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("myxsl.xsl")
document.write(xml.transformNode(xsl))
}
</script>
</head>
<body>
<p>Transform </p>
<form name="xmlsxl">
<p><input type="button" value="XMLTransformXSL" onClick="transformXXX()"> </p>
</form>
</body>
</html>
when i save this file and put my xml and xsl files in
the same directory it happend nothing!
my qestion is how i get xhtm from xsl and xml file?
what do i make wrong?
i ' m appreciated for your help
I 'm trying to transform
XML to XHTML in Browser
and i use this Javascript to make a Sever side transform:
<html><head><title>SML</title>
<script language="JavaScript">
function transformXXX(){
var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("myxml.xml")
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("myxsl.xsl")
document.write(xml.transformNode(xsl))
}
</script>
</head>
<body>
<p>Transform </p>
<form name="xmlsxl">
<p><input type="button" value="XMLTransformXSL" onClick="transformXXX()"> </p>
</form>
</body>
</html>
when i save this file and put my xml and xsl files in
the same directory it happend nothing!
my qestion is how i get xhtm from xsl and xml file?
what do i make wrong?
i ' m appreciated for your help