Comment by em-bee
3 months ago
instead of including a reference to the XSLT sylesheet apparently you can also include javascript: https://stackoverflow.com/a/16426395
3 months ago
instead of including a reference to the XSLT sylesheet apparently you can also include javascript: https://stackoverflow.com/a/16426395
That's only if the original document is an XHTML document that will have scripts loaded. Other XML documents, such as RSS feeds, will not have any support for JS, short of something silly like putting it in an iframe.
i didn't test it, but the stackoverflow answers suggested otherwise. are they wrong?
Perhaps you should have tried testing it before commenting?
6 replies →
But can it transform / format the XML?
why should it not? once loaded it should find the XML in the DOM and transform that any way you like.
for the record, i just tested that the loaded javascript can access the DOM.