[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Problem instantiating XMLDOMDocument node within <xsl:s
Hi Amit Have you tried: set objXMLDoc = new ActiveXObject("Microsoft.XMLDOM"); -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Amit Rekhi Sent: Tuesday, April 13, 1999 11:59 AM To: xsl list Subject: Problem instantiating XMLDOMDocument node within <xsl:script> in IE5 Hello, ENVIRONMENT Browser :- MS IE5 DOM Implementation :- Specific to IE5 PROBLEM STATEMENT I am trying to instantiate an XMLDOMDocument object through an XSL template using a script call as follows . . <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:script language="JScript"> function WriteDocument() { objXMLDoc = new ActiveXObject("Microsoft.XMLDOM"); } </xsl:script> <xsl:template match="/"> <xsl:eval language="JScript">WriteDocument()</xsl:eval> </xsl:template> </xsl:stylesheet> But IE5 does not instantiate a XMLDOMDocument object on execution of the above XSL fragment. IE5 gives me the following error message :- "Microsoft JScript runtime error Automation server can't create object line = 7, col = 3 (line is offset from the tag). Error returned from property or method call." QUESTIONS * What change do I need to make to the above XSL fragment to enable IE5 to instantiate an XMLDOMDocument object? * Is there any change I need to make outside the above XSL fragment to enable IE5 to instantiate an XMLDOMDocument object? Thanks in advance for any replies, AMIT XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|