[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Problem instantiating XMLDOMDocument node within <xsl:s

Subject: RE: Problem instantiating XMLDOMDocument node within <xsl:script> in IE5
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Tue, 13 Apr 1999 12:23:06 -0400
xmldomdocument
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.