[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ASP xml->xsl sending a variable

Posted on 2008-11-07
5
Medium Priority
?
345 Views
Last Modified: 2012-05-05
I am trying to pass variables from my asp to xsl.. and not getting it right. I'm still new to asp and xsl.
<%
strid = Request.QueryString("id");
 
  	// Load the XML 
  var xml = Server.CreateObject("MSXML2.DOMDocument");
  xml.async = false;
  xml.load(Server.MapPath("xml/ContentData.xml"));
 
  	// Load the XSL
  var xsl = Server.CreateObject("MSXML2.DOMDocument");
  xsl.async = false;
  xsl.load(Server.MapPath("print-demo_tpl.htm"));
 
  Response.Write(xml.transformNode(xsl));
%>
 
and 
 
in the xsl it should be I'm assuming
<xsl:param name="strid" />
 
 
How do I push the variable strid to the xsl?

Open in new window

0
Comment
Question by:a53mp
  • 4
5 Comments
 
LVL 1

Author Comment

by:a53mp
ID: 22909853
Does anyone have an idea?
0
 
LVL 14

Accepted Solution

by:
B_Dorsey earned 680 total points
ID: 22923430
you are passing "parameters"

Here, http://www.biglist.com/lists/xsl-list/archives/200103/msg01037.html if that doesnt clear it up, let me know and I can walk you through it.

D
0
 
LVL 1

Author Comment

by:a53mp
ID: 22924470
I think I have the asp part right.. but I'm not quite sure how I should be calling it in the XSL is it just

<xsl:param name="parametername"/>
?
0
 
LVL 1

Author Comment

by:a53mp
ID: 22925244
Thanks I FINALLY figured it out!

I'm sure I will have more questions to come lol
0
 
LVL 1

Author Closing Comment

by:a53mp
ID: 31514543
Thanks!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question