OLD | NEW |
| (Empty) |
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <!DOCTYPE html [ | |
3 <!ENTITY ent1 SYSTEM 'external_foo.ent'> | |
4 <!ENTITY ent2 SYSTEM 'external_foobr.ent'> | |
5 <!ENTITY ent3 SYSTEM 'external_widget.ent'> | |
6 <!ENTITY ent5 PUBLIC "entityURI" "entityFile" NDATA notation1> | |
7 <!ELEMENT html (head, body)> | |
8 <!ATTLIST html xmlns CDATA #IMPLIED> | |
9 <!ELEMENT head (title,script*)> | |
10 <!ELEMENT title (#PCDATA)> | |
11 <!ELEMENT script (#PCDATA)> | |
12 <!ATTLIST script | |
13 src CDATA #IMPLIED | |
14 type CDATA #IMPLIED | |
15 charset CDATA #IMPLIED> | |
16 <!ELEMENT body (p*)> | |
17 <!ATTLIST body onload CDATA #IMPLIED> | |
18 <!ELEMENT p (#PCDATA|br)*> | |
19 <!ATTLIST p xml:base CDATA #IMPLIED | |
20 xmlns CDATA #IMPLIED> | |
21 <!ELEMENT br EMPTY> | |
22 <!NOTATION notation1 PUBLIC "notation1File"> | |
23 ]> | |
24 <html xmlns='http://www.w3.org/1999/xhtml'> | |
25 <head> | |
26 <title>external entity encoding sample</title> | |
27 <script type='text/javascript' src='selfxhtml.js'></script><script charset='UTF-
8' type='text/javascript' src='entitygetxmlversion04.js'></script><script type='
text/javascript'>function loadComplete() { startTest(); }</script></head> | |
28 <body onload="loadComplete()"> | |
29 <p>bar&ent2;&ent1;</p> | |
30 <p xml:base="http://www.example.com/bogus_base">bar&ent2;&ent1;</p> | |
31 &ent3; | |
32 </body> | |
33 </html> | |
OLD | NEW |