I have an XML document here that is served with a corresponding XSL file. The transformation is left to be executed client-side, without JavaScript.
This works fine in IE (shock horror), but in Google Chrome, just displays the document’s text nodes.
I know that it is possible to do client-side XSL in Chrome, as I have seen examples of it, but I am yet to be able to replicate this success myself
What am I doing wrong?
At the time of writing, there was a bug in chrome which required an
xmlnsattribute in order to trigger rendering:This was the problem I was running into when serving the xml file from a server.
If unlike me, you are viewing the xml file from a
file:///url, then the solutions mentioning--allow-file-access-from-filesare the ones you want