I have a TEI XML text that I'm trying to display with XSL. It's at http://jonathanreeve.github.io/corpus-mansfield-garden-party-TEI/garden-party.xml (and the XML/XSL source is at https://github.com/JonathanReeve/corpus-mansfield-garden-party-TEI). Firefox displays it as expected, but it doesn't work in Chrome. Chrome says it doesn't have an associated stylesheet, but it does. How can I get Chrome to display this XML file correctly?
2 Answers
Remove the slash /
in <?xml-stylesheet type="text/xsl" href="garden-party.xsl"/ ?>
and use <?xml-stylesheet type="text/xsl" href="garden-party.xsl"?>
instead.
As mentioned in the above answer, removing '/' is not a solution for the given issue.You have to put the .xml and .xsl files (for instance test.xml and test.xsl) in a server (probably in the localhost) and try to access them with the browser - Chrome, with its absolute path. For instance, if it is in the directory called "site" in the localhost, the URL must be http://localhost/site/test.xml and http://localhost/site/test.xsl In this method, the Google Chrome web browser interprets the XML and XSL files Yours Truly [Chathura Wijekoon][1]