我已经安装在我的电脑MSXML 2.6 MSXML 3.0 MSXML 4.0 MSXML 6.0MSXML:JavaScript并不是一种脚本语言
当我试图分析我的执行时间XSL我有错误: 错误-2147467259 JavaScript是没有一种脚本语言
我的代码:
Set ObjXMLTransformDoc = CreateObject("Msxml2.DOMDocument.5.0")
ObjXMLTransformDoc.Load (mResultPath & MyDocument.DOC_TYPE & "_XML_TO_XSL.xml")
Set ObjXMLTransformStyle = CreateObject("Msxml2.DOMDocument.5.0")
ObjXMLTransformStyle.Load ActiveWorkbook.path & "\RESULT\form_generation.xsl"
ObjXMLTransformStyle.setProperty "AllowXsltScript", True
Set ObjXMLStyle = CreateObject("Msxml2.DOMDocument.5.0")
ObjXMLTransformDoc.transformNodetoObject ObjXMLTransformStyle, ObjXMLStyle
任何想法?
你使用哪个文件名作为脚本? JS,VBS,WSF? – penguin359 2012-03-29 07:39:21
我使用的是js文件 – 2012-03-29 09:22:37
辉煌的错误消息:我确定一些Javascript爱好者会同意此声明。我的猜测是你的XSLT包含一个带有不正确语言代码的msxsl:script元素。 – 2012-03-29 11:22:12