i have written a xsl file which get data from xml file and in another htm file i have written some small script.
code:
if (broadcastMode == 0) {
xslTarget.innerHTML = Terrestrial.transformNode(TerrestrialStyle.XMLDocument);
}
it is work fine in IE but in google chrome i got this error:
Uncaught TypeEr开发者_如何学编程ror: Object # has no method 'transformNode'
You're trying to use Microsoft-proprietary XSLT code in a non-Microsoft browser, so it doesn't work.
Here is some information about XSLT in Firefox. Chrome seems to have some problems with XSL transformations; here is a Stackoverflow question with some information.
精彩评论