545927.html 719 B

1234567891011121314151617181920212223242526272829
  1. <html>
  2. <head>
  3. <script>
  4. function main()
  5. {
  6. xml=document.implementation.createDocument('', '', null);
  7. xml.appendChild(doc=xml.createElement('root'));
  8. var p = new DOMParser();
  9. text = '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">';
  10. text += '<xsl:template match="/">';
  11. text += '<body>';
  12. text += '<xsl:number value="2147483648" format="i"/>';
  13. text += '</body>';
  14. text += '</xsl:template>';
  15. text += '</xsl:stylesheet>';
  16. xsl=p.parseFromString(text, 'text/xml');
  17. xsltProcessor=new XSLTProcessor();
  18. xsltProcessor.importStylesheet(xsl);
  19. d = xsltProcessor.transformToFragment(xml, document);
  20. }
  21. </script>
  22. </head>
  23. <body onload="main()">
  24. </body>
  25. </html>