Subject: RE: Problem instantiating XMLDOMDocument node within <xsl:s From: "Didier PH Martin" <martind@xxxxxxxxxxxxx> Date: Mon, 19 Apr 1999 15:16:27 -0400 |
Hi Jonathan, Thanks Jonathan for your input. Now we have an answer on one part of the problem. We now know that the createObject function is not comming from the default interface given by the host. As for the context object, I checked on my script engine and saw that I get a context object only in debug mode otherwise it is null. But maybe the script host is using the IObjectSafety interface to tell the engine not to provide CreateObject. When I traced the execution of my script engine I saw that IE calls this interface to set the security context. Probably that the host calls this same interface to restrict the script keywords. I think that by default, if that interface is not called, the script engine provide full capabilities, otherwise, the script engine could restrict the keywords (this is what I do with my script engine) when called with the IObjectSafety::SetInterfaceSafetyOptions. Also, I set the script="MCLScript" and got my script engine called. Thus, we now know that it behaves like the HTML script host. To check this, a script host has to call the IObjectSafety interface and tell the engine that it now operates in Internet mode. regards Didier PH Martin mailto:martind@xxxxxxxxxxxxx http://www.netfolder.com -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Jonathan Borden Sent: Monday, April 19, 1999 11:44 AM To: xsl-list@xxxxxxxxxxxxxxxx Subject: RE: Problem instantiating XMLDOMDocument node within <xsl:s Didier.. I can answer this for sure, XMTP is a scripting host which is how Mail Server Pages are implemented: new ActiveXObject(progid) does not cause GetItemInfo to be called in XMTP... I believe that a context object is passed to the IActiveScript::ParseScriptText method which contains an interface that the script engine can use to check security... the XSL script host thus prevents COM objects from being instanciated by this mechanism... so for the time being, and by design, it is disallowed to create COM objects within IE5 XSL scripts. Jonathan > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Didier PH Martin > Sent: Monday, April 19, 1999 9:03 AM > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: RE: Problem instantiating XMLDOMDocument node within <xsl:s > > > Hi Guy, > > a) About the CreateObject. I'll know quite soon if this function > is given by > the host when my script host will be finished. My hypothesis is that this > function is part of the default interface given by the host to the script > engine. As you know, a script host can provide objects to the > script engine > through a default interface. > > b) I'll try an other test that will just give us clue if XSL is a script > host like the others. set a script="PerScript". If it work, then XSL is a > script host. > > regards > Didier PH Martin > mailto:martind@xxxxxxxxxxxxx > http://www.netfolder.com > > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of > Guy_Murphy@xxxxxxxxxx > Sent: Monday, April 19, 1999 6:06 AM > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: RE: Problem instantiating XMLDOMDocument node within <xsl:s > > > Hi Didier. > > Just to clarify (what you might already be aware of)... > > createObject is VBS, the equivelent in JScript is "var myVar = new > ActiveXObject(...object identifier...);" > > It is my suspicion that COM interfaces are simply not exposed to the XSL > scripting engine, whether VBS, JScript or otherwise. I'm not sure exactly > COM and the scripting Host meet together.... is it the scripting hosts > responsibility to expose COM interfaces to the script?... if so if the XSL > scripting host simply doesn't do this.... no COM. > > Also, I haven't tested to see if the scripting engine used by XSL is the > same as that used by other hosts.... has anybody tried using try {...} > catch (...){...} from XSL on a system with JScript 5 installed? > > Cheers > Guy. 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Problem instantiating XMLDOMDoc, Jonathan Borden | Thread | Problem in referencing DHTML 'docum, Amit Rekhi |
Re: Formatting Objects considered h, Håkon Wium Lie | Date | Re: SUMMARY: XML Validation Issues , Chris Lilley |
Month |