blob: 38a62a0a9d9c2979603c68bcea07f48f8ddbd40c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<body>
<iframe id=i></iframe>
<script>
var el = i.contentDocument.documentElement;
i.remove()
var x = new XSLTProcessor();
var xsl =new DOMParser().parseFromString('<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"/>','application/xml');
x.importStylesheet(xsl);
x.transformToDocument(el);
</script>
</body>
|