[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Problem on: Cascading xslts on browsers

Subject: RE: Problem on: Cascading xslts on browsers
From: Kevin Friend <kevin@xxxxxxxxxxxx>
Date: Wed, 11 Dec 2002 15:55:50 +1100
kevin friend
	> > 	data.xml -> stage1.xsl -> stage2.xsl

	Mmh.. so, anyway, if the xslt engines don't have to do that,
	i'm forced to use some kind of include mechanism, i think.. right?
	or is it supposed that i dont ever try to do things like that!


The following works on ie6

<script>

// Set up the resulting document.
var result = new ActiveXObject("Msxml2.DOMDocument");
result.async = false
result.validateOnParse = true;

// Set up the resulting document.
var finalresult = new ActiveXObject("Msxml2.DOMDocument");
finalresult.async = false
finalresult.validateOnParse = true;

// Set up the Data document.
var Data = new ActiveXObject("Msxml2.DOMDocument");
Data.async = false
Data.validateOnParse = true;

// Set up the First XSL document.
var Stage1 = new ActiveXObject("Msxml2.DOMDocument");
Stage1.async = false
Stage1.validateOnParse = true;

// Set up the Second XSL document.
var Stage2 = new ActiveXObject("Msxml2.DOMDocument");
Stage2.async = false
Stage2.validateOnParse = true;

Data.load(Data.xml);
Stage1.load(Stage1.xsl);
Stage2.load(Stage2.xsl);

Data.transformNodeToObject(Stage1, result);
result.transformNodeToObject(Stage2, finalresult);
</script>

finalresult will be the result of both transforms...


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.