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

Using XSLT parameters with ASP

Subject: Using XSLT parameters with ASP
From: "Mazza, Glen" <glen.mazza@xxxxxxx>
Date: Tue, 30 Jan 2001 14:10:11 -0500
xslt parameters asp
Hello, 

I want to use ASP to do server-side XML/XSLT translation to return HTML to
the client.  I'd like to use a value from an ASP Request object to populate
a parameter to pass into my XSLT stylesheet, but I can't find the syntax or
command for it.  Jeni Tennison's answer at
http://www.dpawson.co.uk/xsl/n5982.html nicely explains how to use
parameters within XSLT, but getting values into the XSLT from the ASP page
is my current problem.

Given Jeni's sample parameter of "<xsl:param name = "foo" />" within my .xsl
file, and the Microsoft example of doing ASP translation:

<%@ LANGUAGE = JScript %>
<%
  // Set the source and style sheet locations here
  var sourceFile = Server.MapPath("sample.xml");
  var styleFile = Server.MapPath("sample.xsl");
  
  // Load the XML 
  var source = Server.CreateObject("Msxml2.DOMDocument");
  source.async = false;
  source.load(sourceFile);

  // Load the XSL
  var style = Server.CreateObject("Msxml2.DOMDocument");
  style.async = false;
  style.load(styleFile);

  source.transformNodeToObject(style, Response);

%>

How do I pass in the value of the foo parameter, before calling
.transformNodeToObject?

Thanks!
Glen Mazza

 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.