|
1 <?xml version="1.0" ?> |
|
2 <!DOCTYPE Test [ |
|
3 <!ATTLIST test id ID #REQUIRED> |
|
4 ]> |
|
5 |
|
6 <root> |
|
7 |
|
8 <test id="test_setAttribute"> |
|
9 <foo/> |
|
10 <foo/> |
|
11 </test> |
|
12 |
|
13 <test id="test_normalization"> |
|
14 <bar/> |
|
15 <bar/> |
|
16 </test> |
|
17 |
|
18 <test id="test_whitespace"> |
|
19 |
|
20 <!-- |
|
21 Tests here consist of isEqualNode comparisons of the first and third |
|
22 (zero-indexed) child nodes of each test. |
|
23 |
|
24 In the typical case this means that the zeroth, second, and fourth |
|
25 children are whitespace and the first and third are the nodes being |
|
26 compared for equality or inequality. |
|
27 |
|
28 In some cases, however, where either node is a Text node, this pattern |
|
29 must of necessity be violated. Examples of such tests include the |
|
30 test_text# tests. |
|
31 |
|
32 As a result of this, BE CAREFUL NOT TO INTRODUCE STRAY WHITESPACE WHEN |
|
33 EDITING THIS FILE. You have been warned. |
|
34 --> |
|
35 |
|
36 <test id="test_pi1"> |
|
37 <?pi data?> |
|
38 <?pi data?> |
|
39 </test> |
|
40 <test id="test_pi2"> |
|
41 <?pi data?> |
|
42 <?pi data?> |
|
43 </test> |
|
44 <test id="test_pi3"> |
|
45 <?pi data?> |
|
46 <?pi data ?> |
|
47 </test> |
|
48 <test id="test_pi4"> |
|
49 <?pi ?> |
|
50 <?pi ?> |
|
51 </test> |
|
52 <test id="test_pi5"> |
|
53 <?pi?> |
|
54 <?pi ?> |
|
55 </test> |
|
56 |
|
57 <test id="test_elt1"> |
|
58 <foo></foo> |
|
59 <foo> </foo> |
|
60 </test> |
|
61 <test id="test_elt2"> |
|
62 <foo></foo> |
|
63 <foo> |
|
64 </foo> |
|
65 </test> |
|
66 <test id="test_elt3"> |
|
67 <foo ></foo> |
|
68 <foo></foo> |
|
69 </test> |
|
70 <test id="test_elt4"> |
|
71 <bar xmlns="http://example.com/"/> |
|
72 <bar/> |
|
73 </test> |
|
74 <test id="test_elt5"> |
|
75 <bar xmlns="http://example.com/"/> |
|
76 <bar xmlns="http://example.com"/> |
|
77 </test> |
|
78 |
|
79 <test id="test_comment1"> |
|
80 <!--foo--> |
|
81 <!--foo--> |
|
82 </test> |
|
83 <test id="test_comment2"> |
|
84 <!--foo--> |
|
85 <!--foo --> |
|
86 </test> |
|
87 <test id="test_comment3"> |
|
88 <!--foo--> |
|
89 <!--foo |
|
90 --> |
|
91 </test> |
|
92 <test id="test_comment4"> |
|
93 <!-- |
|
94 foo--> |
|
95 <!-- |
|
96 foo--> |
|
97 </test> |
|
98 |
|
99 <test id="test_text1"><placeholder-dont-move/> |
|
100 <placeholder-dont-move/> |
|
101 <placeholder-dont-move/> |
|
102 </test> |
|
103 <test id="test_text2"><placeholder-dont-move/> |
|
104 <placeholder-dont-move/> <placeholder-dont-move/> |
|
105 </test> |
|
106 <test id="test_text3"><placeholder-dont-move/> |
|
107 <placeholder-dont-move/><![CDATA[ |
|
108 ]]> |
|
109 </test> |
|
110 |
|
111 <test id="test_cdata1"> |
|
112 <![CDATA[ ]]><placeholder-dont-move/> <placeholder-dont-move/> |
|
113 </test> |
|
114 <test id="test_cdata2"> |
|
115 <![CDATA[ ]]> |
|
116 <![CDATA[ ]]> |
|
117 </test> |
|
118 <test id="test_cdata3"> |
|
119 <![CDATA[ ]]> |
|
120 <![CDATA[ ]]> |
|
121 </test> |
|
122 <test id="test_cdata4"> |
|
123 <![CDATA[]]> |
|
124 <![CDATA[ |
|
125 ]]> |
|
126 </test> |
|
127 <test id="test_cdata5"> |
|
128 <![CDATA[ ]]> |
|
129 <![CDATA[ |
|
130 ]]> |
|
131 </test> |
|
132 |
|
133 </test> |
|
134 |
|
135 <test id="test_namespaces"> |
|
136 <test id="test_ns1"> |
|
137 <foo xmlns:quiz="http://example.com/" |
|
138 quiz:q="fun"/> |
|
139 <foo xmlns:f="http://example.com/" |
|
140 f:q="fun"/> |
|
141 </test> |
|
142 <test id="test_ns2"> |
|
143 <quiz:foo xmlns:quiz="http://example.com/" |
|
144 q="fun"/> |
|
145 <f:foo xmlns:f="http://example.com/" |
|
146 q="fun"/> |
|
147 </test> |
|
148 </test> |
|
149 |
|
150 </root> |