0

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?

1
  • If removing the slash in your processing instruction doesn't work, you can also try to either use the HTML output method or add the HTML namespace to your result document (see this question).
    – nwellnhof
    Commented Nov 21, 2015 at 17:29

2 Answers 2

1

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.

1
  • Thanks! Chrome is so finicky.
    – Jonathan
    Commented Nov 21, 2015 at 17:54
0

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]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.