• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

ASP xml->xsl sending a variable

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
a53mp
Asked:
a53mp
  • 4
1 Solution
 
a53mpAuthor Commented:
Does anyone have an idea?
0
 
B_DorseyCommented:
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
 
a53mpAuthor Commented:
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
 
a53mpAuthor Commented:
Thanks I FINALLY figured it out!

I'm sure I will have more questions to come lol
0
 
a53mpAuthor Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now