Link to home
Start Free TrialLog in
Avatar of a53mp
a53mpFlag for United States of America

asked on

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

Avatar of a53mp
a53mp
Flag of United States of America image

ASKER

Does anyone have an idea?
ASKER CERTIFIED SOLUTION
Avatar of B_Dorsey
B_Dorsey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of a53mp

ASKER

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"/>
?
Avatar of a53mp

ASKER

Thanks I FINALLY figured it out!

I'm sure I will have more questions to come lol
Avatar of a53mp

ASKER

Thanks!