Comment by youngtaff 3 months ago How do you format a raw XML file in the browser without XSLT? 13 comments youngtaff Reply 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 LegionMammal978 3 months ago 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. em-bee 3 months ago i didn't test it, but the stackoverflow answers suggested otherwise. are they wrong? 7 replies → youngtaff 3 months ago But can it transform / format the XML? em-bee 3 months ago why should it not? once loaded it should find the XML in the DOM and transform that any way you like. 1 reply →
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 LegionMammal978 3 months ago 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. em-bee 3 months ago i didn't test it, but the stackoverflow answers suggested otherwise. are they wrong? 7 replies → youngtaff 3 months ago But can it transform / format the XML? em-bee 3 months ago why should it not? once loaded it should find the XML in the DOM and transform that any way you like. 1 reply →
LegionMammal978 3 months ago 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. em-bee 3 months ago i didn't test it, but the stackoverflow answers suggested otherwise. are they wrong? 7 replies →
em-bee 3 months ago i didn't test it, but the stackoverflow answers suggested otherwise. are they wrong? 7 replies →
youngtaff 3 months ago But can it transform / format the XML? em-bee 3 months ago why should it not? once loaded it should find the XML in the DOM and transform that any way you like. 1 reply →
em-bee 3 months ago why should it not? once loaded it should find the XML in the DOM and transform that any way you like. 1 reply →
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?
7 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.
1 reply →