Added many tests and todos. One test doesn't run yet.
[docutils/kirr.git] / sandbox / rstdiff / tests / simpleNoSource / expected / onceOnly.xml
blobafe8aa181b018f2b8e886a0952d88be1a9192fa2
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Generated by Docutils 0.6 -->
3 <document source="input/onceOnly.old.rst =&gt; input/onceOnly.new.rst">
4     <title>
5         <inline classes="change-replaced">
6             A document title
7         </inline>
8         <inline classes="change-replacement">
9             Each TITLE may occur only once
10         </inline>
11     </title>
12     <subtitle classes="change-replaced" ids="a-document-subtitle subtitles-as-well" names="a\ document\ subtitle subtitles\ as\ well">
13         <inline classes="change-replaced">
14             A document subtitle
15         </inline>
16         <inline classes="change-replacement">
17             Subtitles as well
18         </inline>
19     </subtitle>
20     <decoration classes="change-replaced">
21         <header>
22             <paragraph classes="change-replacement">
23                 The document header is once only.
24             </paragraph>
25             <paragraph classes="change-replaced">
26                 All parts of decoration may occur singly.
27             </paragraph>
28         </header>
29         <footer>
30             <paragraph classes="change-removed">
31                 And the document footer.
32             </paragraph>
33         </footer>
34     </decoration>
35     <docinfo>
36         <author classes="change-removed">
37             Stefan Merten
38         </author>
39         <organization classes="change-added">
40             Should propagate to docinfo
41         </organization>
42     </docinfo>
43     <section ids="pcdata" names="pcdata">
44         <title>
45             PCDATA
46         </title>
47         <paragraph>
48             Some elements may contain only #PCDATA. They need to propagate changes
49 up. These are the references of 
50             <citation_reference classes="change-replaced" ids="id1" refid="cita">
51                 CITA
52             </citation_reference>
53             <citation_reference classes="change-replacement" ids="id2" refid="citation">
54                 CITATION
55             </citation_reference>
56              and footnotes 
57             <footnote_reference classes="change-replaced" ids="id3" refid="id4">
58                 1
59             </footnote_reference>
60             <footnote_reference classes="change-replacement" ids="id5" refid="id6">
61                 2
62             </footnote_reference>
63             .
64         </paragraph>
65     </section>
66     <section ids="only-once-only" names="only\ once\ only">
67         <title>
68             <inline classes="change-replaced">
69                 Only once only
70             </inline>
71             <inline classes="change-replacement">
72                 Single
73             </inline>
74         </title>
75         <paragraph>
76             Other elements may occur only once and thus need to propagate their
77 changes up or down.
78         </paragraph>
79         <bullet_list bullet="*">
80             <list_item>
81                 <paragraph>
82                     Titles and subtitles of any kind
83                 </paragraph>
84                 <paragraph>
85                     See this section and document title / subtitle
86                 </paragraph>
87             </list_item>
88             <list_item>
89                 <paragraph>
90                     Transitions
91                 </paragraph>
92                 <paragraph>
93                     They have no children which could change.
94                 </paragraph>
95             </list_item>
96             <list_item>
97                 <paragraph>
98                     Parts of definition lists
99                 </paragraph>
100                 <definition_list>
101                     <definition_list_item>
102                         <term>
103                             <inline classes="change-replaced">
104                                 Defined term
105                             </inline>
106                             <inline classes="change-replacement">
107                                 Need to know
108                             </inline>
109                         </term>
110                         <definition>
111                             <paragraph>
112                                 Explanation
113                             </paragraph>
114                         </definition>
115                     </definition_list_item>
116                     <definition_list_item>
117                         <term>
118                             Unknown term
119                         </term>
120                         <definition>
121                             <paragraph classes="change-replaced">
122                                 Definition of term is also only once
123                             </paragraph>
124                             <paragraph classes="change-replacement">
125                                 Term becomes known
126                             </paragraph>
127                         </definition>
128                     </definition_list_item>
129                 </definition_list>
130             </list_item>
131             <list_item>
132                 <paragraph>
133                     Parts of field lists
134                 </paragraph>
135                 <field_list>
136                     <field>
137                         <field_name>
138                             <inline classes="change-replaced">
139                                 Only once
140                             </inline>
141                             <inline classes="change-replacement">
142                                 Single
143                             </inline>
144                         </field_name>
145                         <field_body>
146                             <paragraph>
147                                 Some content
148                             </paragraph>
149                         </field_body>
150                     </field>
151                     <field>
152                         <field_name>
153                             Another field
154                         </field_name>
155                         <field_body>
156                             <paragraph classes="change-replaced">
157                                 Field body is also only once
158                             </paragraph>
159                             <paragraph classes="change-replacement">
160                                 Body of a field.
161                             </paragraph>
162                         </field_body>
163                     </field>
164                 </field_list>
165             </list_item>
166             <list_item>
167                 <paragraph>
168                     The attribution of a citation
169                 </paragraph>
170                 <block_quote>
171                     <paragraph>
172                         To be or not to be!
173                     </paragraph>
174                     <attribution>
175                         <inline classes="change-replaced">
176                             Mozart
177                         </inline>
178                         <inline classes="change-replacement">
179                             Shakespeare
180                         </inline>
181                     </attribution>
182                 </block_quote>
183             </list_item>
184             <list_item>
185                 <paragraph>
186                     Parts of a figure
187                 </paragraph>
188                 <figure>
189                     <image uri="image.gif"/>
190                     <caption>
191                         <inline classes="change-replaced">
192                             The caption of a figure
193                         </inline>
194                         <inline classes="change-replacement">
195                             Picture title
196                         </inline>
197                     </caption>
198                     <legend>
199                         <paragraph classes="change-replaced">
200                             And its legend
201                         </paragraph>
202                         <paragraph classes="change-replacement">
203                             Legendary!
204                         </paragraph>
205                         <paragraph classes="change-added">
206                             May consist of multiple paragraphs.
207                         </paragraph>
208                     </legend>
209                 </figure>
210             </list_item>
211             <list_item>
212                 <paragraph>
213                     Several parts of a table
214                 </paragraph>
215                 <table>
216                     <tgroup cols="2">
217                         <colspec colwidth="5"/>
218                         <colspec colwidth="5"/>
219                         <thead>
220                             <row>
221                                 <entry>
222                                     <paragraph>
223                                         Left
224                                     </paragraph>
225                                 </entry>
226                                 <entry>
227                                     <paragraph>
228                                         Right
229                                     </paragraph>
230                                 </entry>
231                             </row>
232                         </thead>
233                         <tbody>
234                             <row>
235                                 <entry>
236                                     <paragraph>
237                                         Row
238                                     </paragraph>
239                                 </entry>
240                                 <entry>
241                                     <paragraph classes="change-replaced">
242                                         Entry
243 only
244 once
245                                     </paragraph>
246                                     <paragraph classes="change-replacement">
247                                         Changed
248 entry
249                                     </paragraph>
250                                 </entry>
251                             </row>
252                         </tbody>
253                     </tgroup>
254                 </table>
255                 <paragraph>
256                     Also colspec, thead and tbody but they are ignored here.
257                 </paragraph>
258             </list_item>
259         </bullet_list>
260     </section>
261     <section ids="pcdata-and-only-once" names="pcdata\ and\ only\ once">
262         <title>
263             PCDATA 
264             <emphasis>
265                 and
266             </emphasis>
267              only once
268         </title>
269         <paragraph>
270             Some elements are of both types.
271         </paragraph>
272         <option_list>
273             <option_list_item>
274                 <option_group>
275                     <option classes="change-replaced">
276                         <option_string>
277                             --option
278                         </option_string>
279                     </option>
280                     <option classes="change-replacement">
281                         <option_string>
282                             --changed
283                         </option_string>
284                     </option>
285                 </option_group>
286                 <description>
287                     <paragraph>
288                         A changing option_string must propagate to option
289                     </paragraph>
290                 </description>
291             </option_list_item>
292             <option_list_item>
293                 <option_group>
294                     <option classes="change-replaced">
295                         <option_string>
296                             -o
297                         </option_string>
298                     </option>
299                     <option classes="change-replaced">
300                         <option_string>
301                             --option_group
302                         </option_string>
303                     </option>
304                     <option classes="change-replacement">
305                         <option_string>
306                             -g
307                         </option_string>
308                     </option>
309                     <option classes="change-replacement">
310                         <option_string>
311                             --group
312                         </option_string>
313                     </option>
314                 </option_group>
315                 <description>
316                     <paragraph classes="change-replaced">
317                         The option_group and the description may also appear
318 only once
319                     </paragraph>
320                     <paragraph classes="change-replaced">
321                         THE DESCRIPTION AS WELL AS THE OPTION_GROUP MUST BE SINGLE.
322                     </paragraph>
323                 </description>
324             </option_list_item>
325         </option_list>
326         <citation backrefs="id1" classes="change-replaced" ids="cita" names="cita">
327             <label>
328                 CITA
329             </label>
330             <paragraph>
331                 The label of a citation.
332             </paragraph>
333         </citation>
334         <citation backrefs="id2" classes="change-replacement" ids="citation" names="citation">
335             <label>
336                 CITATION
337             </label>
338             <paragraph>
339                 The label of a citation.
340             </paragraph>
341         </citation>
342         <footnote backrefs="id3" classes="change-replaced" ids="id4" names="1">
343             <label>
344                 1
345             </label>
346             <paragraph>
347                 The label of a footnote.
348             </paragraph>
349         </footnote>
350         <footnote backrefs="id5" classes="change-replacement" ids="id6" names="2">
351             <label>
352                 2
353             </label>
354             <paragraph>
355                 The label of a footnote.
356             </paragraph>
357         </footnote>
358     </section>
359 </document>