Hello!

I am trying to invoke the Microsoft XSLT processor as a COM Object:

xslt = CreateObject("COM", "Msxml2.XSLTemplate.4.0");
xslDoc = CreateObject("COM", "Msxml2.FreeThreadedDOMDocument.4.0");
xslDoc.async = 0;
xslDoc.load("http:/www.ourserver.com/sample.xsl");
xslt.stylesheet = xslDoc;

xslProc = xslt.createProcessor();
// etc.

Everything goes well until "xslt.stylesheet = xslDoc", which produces this
error:

Unknown error! Error building an argument list for: STYLESHEET

The following Jscript code, strangely enough, executes nicely

var xslt = new ActiveXObject("Msxml2.XSLTemplate.4.0");
var xslDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument.4.0");
var xslProc;
xslDoc.async = false;
xslDoc.load("http:/www.ourserver.com/sample.xsl");
xslt.stylesheet = xslDoc;

xslProc = xslt.createProcessor();
// etc.

I have loaded the HTML page with the Jscript code in Internet Explorer on
the server, so it must have worked with exactly the same COM object as
ColdFusion server does.

I have to use this syntax instead of the simple xmlDoc.transformNode(xsl),
which I have been useng until nov, because I have to supply some parameter
to the XSLT processor, which is only possible using the above syntax.

Any suggestions?

Thanks,
Samuel





______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to