This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

No Subject


I  am having some problem in parsing a variable from a ASP page to XSL file.
this is the ASP page:
<%
   dim doc, stylesheet

   set doc = Server.CreateObject("msxml2.DOMDocument")
   set stylesheet = Server.CreateObject("msxml2.DOMDocument")

   xmlsource=Server.MapPath("XML/XML_1.xml")
   xslsource=Server.MapPath("XSL/XSL_1.xsl")
   doc.async = false
   stylesheet.async = false
      
   doc.load(xmlsource)
   stylesheet.load(xslsource)

   oParam=SelectSingleNode("//xsl:param[@name='param1']")
   oparam.text="hello"

      
   Response.Write(doc.transformNode(stylesheet))
%>

i have the following code in my XSL file to get the variable parse from ASP
page.
<xsl:value-of select="item[$param1]"/>

Is this the right way to parse a variable to XSL file???

Please help, thank you guys.

Howard (Kian-How) Lim
howard.lim@us.net56.net
847-934-8100 ext 104


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]