Chrome 123更新后Web应用iframe中XSL(XSLT)无法显示问题求助
Chrome 123更新后iframe内XSLT内容无法显示的问题
自Chrome 123版本更新后,Web应用中iframe内通过XSLT转换加载的内容完全无法显示,iframe呈现为空状态。本地开发环境一切正常,仅从服务器访问时出现此问题。
相关代码信息
后台ASP.NET(aspx.vb)bindData方法代码
Private Sub bindData() ' Code to retrieve data and generate XML content for transformation ' ... ' Code to generate XSLT interface and XSL content ' ... ' Code to clean XML for construction ' ... ' XML header preparation ' ... ' Construction of XML content with XSL ' ... ' Sending response with XML content Response.ContentType = "text/xml" Response.ContentEncoding = System.Text.Encoding.Default Response.Write(sXMLlistEdit)
XSL文件头部代码
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dt="http://xsltsl.org/date-time"> <xsl:include href="../string.xsl"/> <xsl:include href="../date-time.xsl"/> <xsl:template match="/"> <xsl:variable name="url_site"><xsl:value-of select="NewDataSet/url_site" /></xsl:variable> <xsl:variable name="VersionJs"><xsl:value-of select="NewDataSet/VersionJs" /></xsl:variable> <html>
XML文件头部代码
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="http://localhost/front/front/dossier_front_liste_type_date_front.xsl?v=13.0.2412.0.17498"?> <NewDataSet>
已尝试的排查动作
- 在ASP.NET应用的Global.asax.vb的Application_Start方法中强制使用TLS 1.2协议,未解决问题
- 检查XSL文件有效性、XSL URL可访问性,均无异常
- 简化XSL内容进行测试,问题仍存在
- 浏览器网络标签显示已加载依赖的string.xsl和date-time.xsl,但控制台显示加载似乎中途停止,未出现明确错误提示
寻求可行的解决方法。
内容的提问来源于stack exchange,提问作者Deos
相关产品推荐
相关产品推荐

