xsl-list
[Top] [All Lists]

Re: [xsl] Not able to render XML in Chrome browser

2022-05-26 10:49:44

Am 26.05.2022 um 17:14 schrieb Joga Singh Rawat 
jrawat(_at_)aptaracorp(_dot_)com:


I am not able to render XML directly in Chrome. At the same time it is
working fine with IE, Edge and Firefox.

What does "directly" mean exactly, are you loading the file over HTTP(S)
or from the file system? Chrome is known not support XSLT referenced
with xml-stylesheet in an XML document loaded from the local file
system. Check F12/developer console, it should show a security
warning/error message with details. Or, if it is not the security issue,
it hopefully indicates what failed.


Note that Edge is als Chromium based these days and should show the same
problem; Firefox as well has been adapted to prevent the file based loading.


a.xml

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl" href="myxsl.xsl"?>

<doc>

…

</doc>

--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>