Hi,
I am testing the scenario to migrate from MSMXL4 to .NET2.0 system.xml. I
experienced xsl file loading problem whenever the xsl file have a user
defined script in it. The error message is as follow:
"Objects of type 'Script2' do not have such a member"
The above error only happens when I set the XsltSettings.TrustedXslt ans use
the following statement to load xsl file:
objxslcompiledtransform.Load(input, XsltSettings.TrustedXslt , new
XmlUrlResolver());
Can anyone tell me what is happening here?
Sample Xsl script:
<msxsl:script language="javascript" implements-prefix="js">
<![CDATA[
// insert any JS needed here.
function datePassed(pstrDate) {
return (new Date(pstrDate.text) < new Date());
}
</msxsl:script>