1 <!DOCTYPE html [ 2 <!ENTITY ent1 'foo'> 3 <!ENTITY ent2 'foo
'> 4 <!ELEMENT html (head, body)> 5 <!ATTLIST html 6 xmlns CDATA #IMPLIED 7 xml:base CDATA #IMPLIED> 8 <!ELEMENT head (title,script*)> 9 <!ELEMENT title (#PCDATA)> 10 <!ELEMENT script (#PCDATA)> 11 <!ATTLIST script 12 src CDATA #IMPLIED 13 type CDATA #IMPLIED 14 charset CDATA #IMPLIED> 15 <!ELEMENT body (p)> 16 <!ATTLIST body xml:base CDATA #IMPLIED 17 id ID #IMPLIED 18 onload CDATA #IMPLIED> 19 <!ELEMENT p (#PCDATA|br)*> 20 <!ELEMENT br EMPTY> 21 ]> 22 <html xmlns='http://www.w3.org/1999/xhtml' xml:base="http://www.w3.org/DOM/L3Test"> 23 <head> 24 <title>XML Base sample</title> 25 <script type='text/javascript' src='selfxhtml.js'></script><script charset='UTF-8' type='text/javascript' src='nodegetbaseuri17.js'></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head> 26 <body xml:base="http://www.w3.org/DOM/EmployeeID" id="body"> 27 <p>bar</p><!-- keep comment adjacent to p --> 28 </body> 29 </html> 30