I have an XSLT file for styles in XML. XSLT is accessible via URL ( http: //someurl/somefile.xsl ) without any problems.
When I paste the same URL into the processing instruction xml-stylesheet, it only displays plain text in browsers (FF, IE),
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="http://someurl/somefile.xsl"?>
<rootElement>...</rootElement>
but when I use the local file path (the file is uploaded to the same folder as the XML file), it works like a charm:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="somefile.xsl"?>
<rootElement>...</rootElement>
Why?
source
share