devxlogo

Pass a Parameter to XSL

Pass a Parameter to XSL

In XSL:

 'define parameter name and set default value

In ASP:

 'set xsl objectDim xslFile, xslDocxslFile = "MyXsl.xsl"Set xslDoc = Server.CreateObject("Msxml2.DOMDocument")xslDoc.async = falsexslDoc.load(Server.MapPath(xslFile))'pass parameterset param=xslDoc.selectSingleNode("//xsl:param[@name='loginName']")param.setAttribute "select","'Bill'"

devx-admin

Share the Post: