[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem instantiating XMLDOMDocument node within <xsl:s
> >If after having added the previously mentioned keys it still do not work. >Then, the cause is the script host that suppressed the CreateObject function >from the available valid functions. > >Give us feedback on your research. ></reply> > The problem is the famous "OLE Automation server can't create object" error. It occurs whether or not a valid PROGID is passed to new ActiveXObject. The question is whether this behavior is specific to MS script engines or any script engine run within IE's XSL. here are the sample files that I've used to demonstrate this: -----------XSL------------- <?xml version="1.0" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:script language="JavaScript"> function testit() { var doc = new ActiveXObject("Microsoft.XMLDOM"); }; </xsl:script> <xsl:template><xsl:apply-templates /></xsl:template> <xsl:template match="/"> <xsl:eval>testit()</xsl:eval> </xsl:template> </xsl:stylesheet> ---------XML---------------- <?xml version="1.0" ?> <?xml-stylesheet type="text/xsl" href="test.xsl" ?> <example></example> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|