我使用自定义的ActionResult从控制器操作返回XML:{
/// <summary>/// This class is a custom ActionResult that outputs the content of an XML document to the response stream/// </sum
下面是我使用的函数: var tmpElt = document.createElement("div");
var result = xsltProcessor.transformToFragment(xml, document);
对大部分时间返回null。在Firefox上,它的行为正常。我注意到,当实际的HTML<
我已经将HTML更改为XML,我在HTML输入中使用了非闭合的Meta元素。元素在输入中没有显示任何验证错误,但在进行转换时,我得到了以下错误: The element type "meta" must be terminated by the matching end-tag> </document>
<xsl: