T
T
tj572019-03-26 15:23:13
Google Chrome
tj57, 2019-03-26 15:23:13

Why doesn't an xml file with xsl styles attached to it open in Google Chrome and Opera?

In the xml file, I include xsl as follows:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>

When opening a file in Chrome and in Opera, I see the same error:
5c9a1936e475e062729304.png
For Chrome, many people suggest starting the browser with the --allow-file-access-from-files flag , but this did not help me. In IE, Safari and Firefox the file is displayed without errors. Can this be fixed ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Fov, 2019-03-26
@tj57

All of it works. You just need to close all other chrome windows first. If it is running in the background, then kill all its processes. Only then run it with the --allow-file-access-from-files flag.
Works in all browsers based on Chromium.
Or create a server (Denver or whatever is on Windows now) and access files via http. Then this error will not occur at all without any flags.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question