602115.html 556 B

1234567891011121314151617181920212223
  1. <!DOCTYPE html>
  2. <script>
  3. try {
  4. var docType = document.implementation.createDocumentType(undefined, '', '');
  5. var doc = document.implementation.createDocument('', '', null);
  6. var xp = new XSLTProcessor;
  7. xp.importStylesheet(doc);
  8. xp.transformToDocument(docType);
  9. }
  10. catch (ex) {}
  11. try {
  12. docType = document.implementation.createDocumentType(undefined, '', '');
  13. doc = document.implementation.createDocument('', '', null);
  14. xp = new XSLTProcessor;
  15. xp.importStylesheet(doc);
  16. xp.transformToFragment(docType, document);
  17. }
  18. catch (ex) {}
  19. </script>