1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <?xml-stylesheet href=
"resources/xml-stylesheet-pi-not-in-prolog.css" title=
"style1" type=
"text/css"?>
3 <?xml-stylesheet href=
"resources/xml-stylesheet-pi-not-in-prolog.css" title=
"another style" type=
"text/css"?>
4 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
7 <title>xml-stylesheet pseudo attribute title test
</title>
8 <script type=
"text/javascript">
10 if (window.testRunner)
11 testRunner.dumpAsText();
12 var pi = document.firstChild;
13 if (pi.sheet.title ==
"style1" &&
14 pi.nextSibling.sheet.title ==
"another style")
15 document.getElementById('result').innerHTML = 'SUCCESS';
19 <body onload=
"runTest();">
20 <div id=
"result">FAILURE
</div>