Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <script> |
michael@0 | 4 | function main() |
michael@0 | 5 | { |
michael@0 | 6 | xml=document.implementation.createDocument('', '', null); |
michael@0 | 7 | xml.appendChild(doc=xml.createElement('root')); |
michael@0 | 8 | |
michael@0 | 9 | var p = new DOMParser(); |
michael@0 | 10 | text = '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">'; |
michael@0 | 11 | text += '<xsl:template match="/">'; |
michael@0 | 12 | text += '<body>'; |
michael@0 | 13 | text += '<xsl:number value="2147483648" format="i"/>'; |
michael@0 | 14 | text += '</body>'; |
michael@0 | 15 | text += '</xsl:template>'; |
michael@0 | 16 | text += '</xsl:stylesheet>'; |
michael@0 | 17 | xsl=p.parseFromString(text, 'text/xml'); |
michael@0 | 18 | |
michael@0 | 19 | xsltProcessor=new XSLTProcessor(); |
michael@0 | 20 | xsltProcessor.importStylesheet(xsl); |
michael@0 | 21 | d = xsltProcessor.transformToFragment(xml, document); |
michael@0 | 22 | } |
michael@0 | 23 | </script> |
michael@0 | 24 | </head> |
michael@0 | 25 | <body onload="main()"> |
michael@0 | 26 | </body> |
michael@0 | 27 | </html> |
michael@0 | 28 |