我们使用 XSLT 来显示站点地图。在我们将 Sitecore 从 6.5 升级到 6.6 之前,它一直运行良好。现在我们收到错误“无法处理 Xsl 文件”。为了检查我们在逻辑上是否有问题,我们保留了一个空的 XSLT,但我们得到了同样的错误。有人对此有想法吗?还是面临同样的问题?
编辑:
web.config 中的 XSL 扩展设置为:
<xslExtensions>
<extension mode="on" type="Sitecore.Xml.Xsl.XslHelper, Sitecore.Kernel" namespace="http://www.sitecore.net/sc" singleInstance="true" />
<extension mode="on" type="Sitecore.MainUtil, Sitecore.Kernel" namespace="http://www.sitecore.net/util" singleInstance="true" />
<extension mode="on" type="Sitecore.DateUtil, Sitecore.Kernel" namespace="http://www.sitecore.net/dateutil" singleInstance="true" />
<extension mode="on" type="Sitecore.Web.UI.WebControls.ContentDot, Sitecore.Kernel" namespace="http://www.sitecore.net/dot" singleInstance="true" />
<extension mode="on" type="Sitecore.Xml.Xsl.SqlHelper, Sitecore.Kernel" namespace="http://www.sitecore.net/sql" singleInstance="true" />
<extension mode="on" type="Sitecore.Web.UI.WebControls.WebEditRibbon, Sitecore.Kernel" namespace="http://www.sitecore.net/webedit" singleInstance="true" />
<extension mode="on" type="Sitecore.StringUtil, Sitecore.Kernel" namespace="http://www.sitecore.net/stringutil" singleInstance="true" />
</xslExtensions>
并记录此错误:
ERROR Could not resolve type name:
Sitecore.Ecommerce.Classes.XslExtensions,Sitecore.Ecommerce.Custom (method:Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters,Boolean assert)).
ERROR A rendering error occurred: Xsl file could not be processed (details: System.Exception: Could not resolve type name:Sitecore.Ecommerce.Classes.XslExtensions,Sitecore.Ecommerce.Custom (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)).
at Sitecore.Diagnostics.Error.Raise(String error, String method)
at Sitecore.Diagnostics.Error.Assert(Boolean condition, String error)
at Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Web.UI.WebControls.XslFile.ReadXslExtensions()
at Sitecore.Web.UI.WebControls.XslFile.get_XslExtensions()
at Sitecore.Web.UI.WebControls.XslFile.AddExtensionObjects(XsltArgumentList list, Item item)
at Sitecore.Web.UI.WebControls.XslFile.DoRender(HtmlTextWriter output, Item item))