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