Thomas
2007-03-10 12:18:37 UTC
The following fails with an access denied error:
var xml = WScript.CreateObject("MSXML2.DOMDocument.6.0");
var xsl = WScript.CreateObject("MSXML2.DOMDocument.6.0");
xml.validateOnParse=false;
xsl.validateOnParse=false;
xsl.setProperty("ResolveExternals",true);
//the following property may only be set with msxml 6 but does not
seem to have any effect
xsl.setProperty("AllowXsltScript",true);
xml.load(WScript.Arguments(0));
xsl.load(WScript.Arguments(1));
WScript.Echo( xml.transformNode( xsl.documentElement ));
when I use MSXML2.DOMDocument.3.0 (installed side-by-side) to create
the objects, everything works well. This affects 95 % of the
stylesheets we use.And the complaints are coming in from our Vista
users. One workaround is to recommend installing MSXML 3 in addition,
but we woruld prefer it to work with MSXML 6 just as well without
changing the style sheets.
Thanks for any hint on this issue.
- Thomas
var xml = WScript.CreateObject("MSXML2.DOMDocument.6.0");
var xsl = WScript.CreateObject("MSXML2.DOMDocument.6.0");
xml.validateOnParse=false;
xsl.validateOnParse=false;
xsl.setProperty("ResolveExternals",true);
//the following property may only be set with msxml 6 but does not
seem to have any effect
xsl.setProperty("AllowXsltScript",true);
xml.load(WScript.Arguments(0));
xsl.load(WScript.Arguments(1));
WScript.Echo( xml.transformNode( xsl.documentElement ));
when I use MSXML2.DOMDocument.3.0 (installed side-by-side) to create
the objects, everything works well. This affects 95 % of the
stylesheets we use.And the complaints are coming in from our Vista
users. One workaround is to recommend installing MSXML 3 in addition,
but we woruld prefer it to work with MSXML 6 just as well without
changing the style sheets.
Thanks for any hint on this issue.
- Thomas