6 xml
=document
.implementation
.createDocument('', '', null);
7 xml
.appendChild(doc
=xml
.createElement('root'));
9 var p
= new DOMParser();
10 text
= '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">';
11 text
+= '<xsl:template match="/">';
13 text
+= '<xsl:number value="2147483648" format="i"/>';
15 text
+= '</xsl:template>';
16 text
+= '</xsl:stylesheet>';
17 xsl
=p
.parseFromString(text
, 'text/xml');
19 xsltProcessor
=new XSLTProcessor();
20 xsltProcessor
.importStylesheet(xsl
);
21 d
= xsltProcessor
.transformToFragment(xml
, document
);
25 <body onload=
"main()">