a53mp
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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"/>
?
<xsl:param name="parametername"/>
?
ASKER
Thanks I FINALLY figured it out!
I'm sure I will have more questions to come lol
I'm sure I will have more questions to come lol
ASKER
Thanks!
ASKER