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

multiple tranformations in XMLDOM

Subject: multiple tranformations in XMLDOM
From: Bryan Tarantina <bryantarantina@xxxxxxxxx>
Date: Wed, 17 Jul 2002 11:26:41 -0700 (PDT)
new activexobject microsoft.xmldom
Hey guys, 

I have a small problem I am working on. Here's the
process:

source.xml + trans1.xsl -> out.xml

then:

out.xml + trans2.xsl -> out.html

This is all done with the XMLDOM in Javascript. I need
to go straight to the out.html file, so no saving
files in the interim steps. The trick: the out.xml
file actually contains html source I am treating as
XML (since it is well-formed).

Both XSL sheets have output specified as XML.

In Javascript I can create the variables and get each
transformation done separately (if I save out.xml as a
file), but I am having problems getting the second one
to work off the direct output of the first. Here's
what I have in Javascript:

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.validateOnParse="false"
xmlDoc.load("source.xml")

var xslDoc = new ActiveXObject("Microsoft.XMLDOM")
xslDoc.async="false"
xslDoc.load("trans1.xsl")

var newxmlDoc = new ActiveXObject("Microsoft.XMLDOM")
newxmlDoc.async="false"
newxmlDoc.load("out.xml")

var newxslDoc = new ActiveXObject("Microsoft.XMLDOM")
newxslDoc.async="false"
newxslDoc.load("trans2.xsl")

var htmlout = new ActiveXObject("Microsoft.XMLDOM")
htmlout.async="false"
htmlout.validateOnParse="false"

htmlout =  xmlDoc.transformNode(xslDoc)

var htmloutput = new ActiveXObject("Microsoft.XMLDOM")
htmloutput.async="false"
htmloutput.validateOnParse="false"

htmloutput = htmlout.transformNode(newxslDoc)

document.write(htmloutput)


anyideas?

Bryan


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

 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.