2 <p>Test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=19215">bug
19215</a>:
3 XSLT transformToDocument fails when stylesheet contains
&#
160;
</p>
6 testRunner
.dumpAsText();
9 var XML
= '<?xml version="1.0" encoding="utf-8" ?>'+
10 '<libraries xmlns:xhtml="http://www.w3.org/1999/xhtml">'+
13 var XSL
= '<?xml version="1.0" encoding="UTF-8" ?>'+
14 '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"'+
15 ' xmlns="http://www.w3.org/1999/xhtml"'+
17 ' <xsl:template match="/">'+
18 ' <html xmlns="http://www.w3.org/1999/xhtml" lang="en"'+
24 ' <body foo=" ">'+
31 var parser
= new DOMParser();
32 var d
= parser
.parseFromString(XML
, "text/xml");
33 var parser
= new DOMParser();
34 var xsl
= parser
.parseFromString(XSL
, "text/xml");
36 var xsltproc
= new XSLTProcessor();
37 xsltproc
.importStylesheet(xsl
);
38 var result
= xsltproc
.transformToDocument(d
);
40 document
.write(result
? "SUCCESS" : "FAILURE");
42 document
.write("Exception: " + ex
);