T
toby989
Hi All
I am completely new to this, but I was wondering if I can apply 2 xslt's
subsequently to an xml, via the (client side) scripting method:
http://www.w3schools.com/xsl/xsl_client.asp
Like maybe:
<html>
<body>
<script type="text/javascript">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("cdcatalog.xml")
// Load XSL ---- 1 ----
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("cdcatalog.xsl")
// Transform ---- 1 ----
document.write(xml.transformNode(xsl))
// Load XSL ---- 2 -----
var xsl2 = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("cdcatalog2.xsl")
// Transform ---- 2 -----
document.write(xml.transformNode(xsl2))
</script>
</body>
</html>
Thaks for letting me know some scripting hints if anyone came across similar
situation.
Toby
I am completely new to this, but I was wondering if I can apply 2 xslt's
subsequently to an xml, via the (client side) scripting method:
http://www.w3schools.com/xsl/xsl_client.asp
Like maybe:
<html>
<body>
<script type="text/javascript">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("cdcatalog.xml")
// Load XSL ---- 1 ----
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("cdcatalog.xsl")
// Transform ---- 1 ----
document.write(xml.transformNode(xsl))
// Load XSL ---- 2 -----
var xsl2 = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("cdcatalog2.xsl")
// Transform ---- 2 -----
document.write(xml.transformNode(xsl2))
</script>
</body>
</html>
Thaks for letting me know some scripting hints if anyone came across similar
situation.
Toby