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

Can you send a parameter to an XSL stylesheet using ja

Subject: Can you send a parameter to an XSL stylesheet using javascript?
From: Kathryn.Grant@xxxxxxxxxxxxxxxxx
Date: Fri, 16 Aug 2002 10:34:52 -0700
javascript transformnode parameter
Hi all,

I apologize if this is slightly off topic, but I thought I'd be more likely
to get an answer to my question here than on a js list (since many xsl
programmers probably know js, but not as many js programmers know xsl).

I am using the following js to run a transformation in an HTML page:

<script type="text/javascript">
// Load XML
var xml = new ActiveXObject("MSXML2.DOMDocument")
xml.async = false
xml.load("BRPfielddeftable.xml")

// Load the XSL
var xsl = new ActiveXObject("MSXML2.DOMDocument")
xsl.async = false
xsl.load("brp_fuel_cost_index.xsl")

// Transform
document.write(xml.transformNode(xsl))

</script>

My question is this:  If I declare a variable in this script, is there a way
to pass its value to a parameter in the xsl stylesheet referenced in this
script?

Thanks in advance--

Kathryn

 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.