p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

xslt thread: passing DOM as parameter to stylesheet in MSXML ...

Message #1 by "Ram Cherukuri" <crrao@h...> on Wed, 11 Sep 2002 15:40:52
I could finally get it to working now :)

I removed the variable ResponseLookup from the stylesheet .. so am not 
using the document() function anymore.

I also changed the AddParameter code to:
Dim xslt As New MSXML2.XSLTemplate
Dim xslProc As IXSLProcessor
Dim xslDoc As New MSXML2.FreeThreadedDOMDocument
xslDoc.async = False
xslDoc.resolveExternals = False
xslDoc.Load "c:\at.xsl"
Set xslt.stylesheet = xslDoc
Set xslProc = xslt.createProcessor()
xslProc.input = xmlObject
xslProc.addParameter "param1", xmlResponse.selectSingleNode(".")
Debug.Print xslProc.output

main thing here is pointing to the root node of the response xml document.

thanks for your response Mike!

  Return to Index