xsl-使用document() 出现XsltSettings.EnableDocumentFunction 问题解决

XslCompiledTransform xslt = new XslCompiledTransform();  //XmlSecureResolver resolver = new XmlSecureResolver(new XmlUrlResolver(),http://localhost:821); XsltSettings settings = XsltSettings.TrustedXslt; settings.EnableDocumentFunction = true; //Load the XSL stylsheet into the XslCompiledTransform object xslt.Load(xslUrl, settings, new XmlUrlResolver());  

 

 

 ----说明:关键点是使用XsltSettings settings = XsltSettings.TrustedXslt;

你可能感兴趣的:(xsl学习笔记,xslt,xsl,object)