Does it work locally? I don’t think so, because there are some errors in XML and XSLT.
Chrome blocks local XML and XSLT processing! This is a problem, or they turned it off for security reasons. Check out this Chrome Bug Report for some workarounds.
IE9 has disabled support for a mix of local XML and remote XSLT. Also for security reasons! (I have no link for this)
Your XML must have at least one root element:
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="http://www.test.com/AuditTrail.xsl"?> <hello/>
and your XSLT should have some XSLT templates:
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head><title>Test</title></head> </html> </xsl:template> </xsl:stylesheet>
With these fixes, this example will work for IE8 and Firefox.
In Chrome, XML and XSLT must reside on a web server. In IE9, both must be on a web server or stored locally (no mixture).
therealmarv
source share