I am using an msxml 6.0 transform method under VBScript, on a more or less conventional XML document. The setup is like this:
Set objXSL = CreateObject("MSXML2.FreeThreadedDOMDocument.6.0")
objXSL.setProperty "AllowDocumentFunction",True
objXSL.setProperty "AllowXsltScript",True
objXSL.resolveExternals = True
objXSL.async = false
objXSL.load(Server.MapPath("MyStylesheet.xsl"))
Set xslTemplate = CreateObject("MSXML2.XSLTemplate.6.0")
xslTemplate.setProperty "AllowXsltScript", True
xslTemplate.stylesheet = objXSL
Set xslProc = xslTemplate.createProcessor()
Then after that I issue the transform() method command which requires an input and an output buffer, like,
xslProc.input = objXmlDomInput
xslProc.output = objXmlDomOutput
xslProc.transform()
Is there a way to tell transform() to use the same buffer for both the source and destination? The way it is now, your memory footprint is roughly double. This is causing trouble for me, with a semi large DOM in the result. It just seems inelegant to have to support two objects, when the Input one is basically a throwaway after transform() is done. Thank you, Stackoverflow readers!