summaryrefslogtreecommitdiff
path: root/sandbox/paultremblay/python_interface/docutilsToFo/valid/properties.rng
blob: 847107996a21d7260fd3a8ac3244f224203b63e6 (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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
<?xml version="1.0" encoding="UTF-8"?>
<!--
  =========================================================
                                                           
  (c) 2004, RenderX                                        
                                                           
  Author: Alexander Peshkov <peshkov@renderx.com>          
                                                           
  Permission is granted to use this document, copy and     
  modify free of charge, provided that every derived work  
  bear a reference to the present document.                
                                                           
  This document contains a computer program written in     
  XSL Transformations Language. It is published with no    
  warranty of any kind about its usability, as a mere      
  example of XSL technology. RenderX shall not be          
  considered liable for any damage or loss of data caused  
  by use of this program.                                  
                                                           
  =========================================================
-->
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
  <include href="properties_groups.rng"/>
  <!--
    ****************************************************************************************
    Properties used by top-level elements
    ****************************************************************************************
    ===============================================================
    Root element can bear inheritable properties, passed further to 
    fo:flows/fo:static-contents. Inheritable properties from fo:layout-master-set 
    are banned in this version of schema.
    ===============================================================
  -->
  <define name="root.attlist">
    <optional>
      <ref name="media-usage.attr"/>
    </optional>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Document meta information - RenderX extension
    ===============================================================
  -->
  <define name="meta-info.attlist">
    <empty/>
  </define>
  <define name="meta-field.attlist">
    <ref name="name.attr"/>
    <ref name="value.attr"/>
  </define>
  <!--
    ===============================================================
    Color profile declarations
    ===============================================================
  -->
  <define name="declarations.attlist">
    <empty/>
  </define>
  <define name="color-profile.attlist">
    <ref name="src.attr"/>
    <ref name="color-profile-name.attr"/>
    <optional>
      <ref name="rendering-intent.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Bookmarks - RenderX extension
    ===============================================================
  -->
  <define name="outline.attlist">
    <empty/>
  </define>
  <define name="bookmark.attlist">
    <choice>
      <ref name="internal-destination.attr"/>
      <ref name="external-destination.attr"/>
    </choice>
    <optional>
      <ref name="collapse-subtree.attr"/>
    </optional>
  </define>
  <define name="bookmark-label.attlist">
    <empty/>
  </define>
  <!--
    ===============================================================
    Layout-master-set contains a set of page-masters. Neither of
    its descendants generates any area, so no inherited elements
    can be specified on it or on its children.
    ===============================================================
  -->
  <define name="layout-master-set.attlist">
    <empty/>
  </define>
  <!--
    ===============================================================
    Page sequence master
    ===============================================================
  -->
  <define name="page-sequence-master.attlist">
    <ref name="master-name.attr"/>
  </define>
  <!--
    ===============================================================
    Sequence specifiers.
    ===============================================================
  -->
  <define name="single-page-master-reference.attlist">
    <ref name="master-reference.attr"/>
  </define>
  <define name="repeatable-page-master-reference.attlist">
    <ref name="master-reference.attr"/>
    <optional>
      <ref name="maximum-repeats.attr"/>
    </optional>
  </define>
  <define name="repeatable-page-master-alternatives.attlist">
    <optional>
      <ref name="maximum-repeats.attr"/>
    </optional>
  </define>
  <define name="conditional-page-master-reference.attlist">
    <ref name="master-reference.attr"/>
    <optional>
      <ref name="page-position.attr"/>
    </optional>
    <optional>
      <ref name="odd-or-even.attr"/>
    </optional>
    <optional>
      <ref name="blank-or-not-blank.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Simple page master defines a page layout. It does not
    explicitly generate any content. Most of its properties are
    local except for writing-mode and reference-orientation that
    are inherited by the underlying region-* objects.
    ===============================================================
    NOTE. We could think about a common background/padding/border
    for every page instance generated by the page master. For such
    a scope, we may add borders/padding/background to its features.
    However, in the current version this is ruled out explicitly by the XSL specs.
  -->
  <define name="simple-page-master.attlist">
    <ref name="margin-properties-CSS"/>
    <ref name="master-name.attr"/>
    <optional>
      <ref name="page-height.attr"/>
    </optional>
    <optional>
      <ref name="page-width.attr"/>
    </optional>
    <optional>
      <ref name="reference-orientation.attr"/>
    </optional>
    <optional>
      <ref name="size.attr"/>
    </optional>
    <optional>
      <ref name="writing-mode.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Region elements by themselves do not generate any content.
    Reference-orientation and writing-mode may be inherited from
    the page master; all other features are local.
    ===============================================================
  -->
  <define name="region-properties">
    <ref name="border-padding-background-properties"/>
    <ref name="area-properties"/>
    <optional>
      <ref name="region-name.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Body region: middle of the page. Unlike side regions, this one
    may have multiple columns.
    ===============================================================  
    NOTE: We have restricted margin properties to be margin-only,
    allowing no spaces. This is done because no clear semantics
    can be ascribed to single components of a space vector.
  -->
  <define name="region-body.attlist">
    <ref name="region-properties"/>
    <ref name="margin-properties-CSS"/>
    <optional>
      <ref name="column-count.attr"/>
    </optional>
    <optional>
      <ref name="column-gap.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Side regions: page edges. These regions have extent and
    precedence that is used to arbitrate corner conflicts. Side
    regions are viewed as frames, and may not have margins.
    ===============================================================
    NOTE: Extent made obligatory: its default value of 0.0pt does not
    make much sense.
  -->
  <define name="region-before.attlist">
    <ref name="region-properties"/>
    <ref name="extent.attr"/>
    <optional>
      <ref name="precedence.attr"/>
    </optional>
  </define>
  <define name="region-after.attlist">
    <ref name="region-properties"/>
    <ref name="extent.attr"/>
    <optional>
      <ref name="precedence.attr"/>
    </optional>
  </define>
  <define name="region-start.attlist">
    <ref name="region-properties"/>
    <ref name="extent.attr"/>
  </define>
  <define name="region-end.attlist">
    <ref name="region-properties"/>
    <ref name="extent.attr"/>
  </define>
  <!--
    ===============================================================
    Page sequence. 
    ===============================================================
  -->
  <define name="page-sequence.attlist">
    <optional>
      <ref name="format.attr"/>
    </optional>
    <optional>
      <ref name="letter-value.attr"/>
    </optional>
    <optional>
      <ref name="grouping-separator.attr"/>
    </optional>
    <optional>
      <ref name="grouping-size.attr"/>
    </optional>
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <optional>
      <ref name="initial-page-number.attr"/>
    </optional>
    <optional>
      <ref name="force-page-count.attr"/>
    </optional>
    <ref name="master-reference.attr"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Title
    ===============================================================
    MEMO: Why 'id' attribute is not allowed here?
    MEMO: Does it makes sence to add relative-position here? 
    According to Section 7.12.1. "relative-position" it is allowed everywhere except fo:block-container
    Should we allow all inline properties here??
  -->
  <define name="title.attlist">
    <ref name="accessibility-properties"/>
    <ref name="aural-properties-unheritable"/>
    <ref name="border-padding-background-properties"/>
    <ref name="margin-properties-inline"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Flows. 'flow-name' feature defines linkage of the flow to a region in the page master.
    ===============================================================
  -->
  <define name="flow-properties">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <ref name="flow-name.attr"/>
    <ref name="inheritable-properties"/>
  </define>
  <define name="flow.attlist">
    <ref name="flow-properties"/>
  </define>
  <define name="static-content.attlist">
    <ref name="flow-properties"/>
  </define>
  <!--
    ===============================================================
    An extension element, rx:flow-section.
    Acts like a top-level block with multiple columns.
    ===============================================================
  -->
  <define name="flow-section.attlist">
    <optional>
      <ref name="column-count.attr"/>
    </optional>
    <optional>
      <ref name="column-gap.attr"/>
    </optional>
    <ref name="border-padding-background-properties"/>
    <ref name="margin-properties-block"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ****************************************************************************************
    Properties used by content-bearing elements
    ****************************************************************************************
  -->
  <!--
    ===============================================================
    Properties of block formatting objects.
    ===============================================================
    ===============================================================
    Besides properties used to format the block itself, it also conveys
    formatting information to its inline-level children.
    ===============================================================
  -->
  <define name="block.attlist">
    <ref name="block-properties"/>
    <ref name="character-properties-unheritable"/>
    <optional>
      <ref name="text-altitude.attr"/>
    </optional>
    <optional>
      <ref name="text-depth.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Block container
    ===============================================================
  -->
  <!--
    MEMO: We are forced to create separate element 'absolute-container' in order 
    to satisfy XSL FO spec requirements. 
  -->
  <define name="absolute-container.attlist">
    <ref name="absolute-position-properties"/>
    <ref name="area-properties-unheritable"/>
    <ref name="box-size-properties"/>
    <ref name="common-block-properties"/>
    <optional>
      <ref name="z-index.attr"/>
    </optional>
  </define>
  <!--
    'Usual' container element
    MEMO: XSLFO spec prohibits use of 'relative-position' for fo:block-container,
    but we believe that it should be allowed for non-absolutely positioned containers.
  -->
  <define name="block-container.attlist">
    <ref name="area-properties-unheritable"/>
    <ref name="box-size-properties"/>
    <ref name="block-properties"/>
    <optional>
      <ref name="container-position.attr"/>
    </optional>
    <optional>
      <ref name="z-index.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Properties of inline formatting objects.
    ===============================================================
    ===============================================================
    Unicode bidi-override
    ===============================================================
    MEMO: This element is 'half-inline' accroding to spec, since it's exhibits the same 
    bahavior and used in the same context but yet cannot carry some of inline-level
    properties such as margins and border.
    We use the same set of properties as for inline here (except for unicode-bidi and
    width properties) since we believe that this is a typical inline element.
    Moreover fo:bidi-override is redundant from semantic point of view since it do not 
    carry any additional information compared to regular fo:inline - just add
    'unicode-bidi' to fo:inline and you do not need fo:bidi-override anymore.
  -->
  <define name="bidi-override.attlist">
    <ref name="inline-properties"/>
    <optional>
      <ref name="unicode-bidi.attr"/>
    </optional>
  </define>
  <!--
    MEMO: 'Folint' believes that direction property is required for fo:bidi-override,
    but this is against the spec since this property can be inherited.
  -->
  <!--
    ===============================================================
    Single character
    ===============================================================
  -->
  <define name="character.attlist">
    <ref name="character.attr"/>
    <optional>
      <ref name="suppress-at-line-break.attr"/>
    </optional>
    <optional>
      <ref name="treat-as-word-space.attr"/>
    </optional>
    <ref name="common-inline-properties"/>
  </define>
  <!--
    ===============================================================
    Initial property set specifies properties for one or more lines
    ===============================================================
    MEMO: Spec is contradictory here. It states that use of this object is equivalent to
    the fo:wrapper around the first line. At the same time spec allows on this element
    such properties as 'Common Border, Padding, and Background Properties' 
    - fo:wrapper can't have border/padding/etc and can bear inheritable properties only.
    We believe that this element should be treated as inline and thus should have
    appropriate properties set.
  -->
  <define name="initial-property-set.attlist">
    <ref name="common-inline-properties"/>
  </define>
  <!--
    ===============================================================
    External graphic
    ===============================================================
  -->
  <define name="external-graphic.attlist">
    <ref name="graphic-properties"/>
    <optional>
      <ref name="src.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    In-stream graphic
    ===============================================================
  -->
  <define name="instream-foreign-object.attlist">
    <ref name="graphic-properties"/>
  </define>
  <!--
    ===============================================================
    Inline
    ===============================================================
  -->
  <define name="inline.attlist">
    <ref name="height-properties"/>
    <ref name="inline-properties"/>
  </define>
  <!--
    ===============================================================
    Inline container
    ===============================================================
    FIXME! We believe that this element should not bear not-inheritable properties,
    which applies to text since it can't have text children.
    Therefor we do not use 'common-inline-properties' set.
  -->
  <define name="inline-container.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <ref name="accessibility-properties"/>
    <ref name="aural-properties-unheritable"/>
    <ref name="area-alignment-properties"/>
    <ref name="border-padding-background-properties"/>
    <ref name="keeps-properties-atomic"/>
    <ref name="margin-properties-inline"/>
    <ref name="relative-position-properties"/>
    <ref name="area-properties-unheritable"/>
    <ref name="box-size-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Leader
    ===============================================================
  -->
  <define name="leader.attlist">
    <ref name="inline-properties"/>
  </define>
  <!--
    MEMO: Note that 'inline-properties' includes block-level inheritable properties.
    But it's OK in our content-model since it allows block-level descendants wrapped
    into fo:inline-container.
    At the same time block-level inheritable properties includes leader properties,
    since they are inheritable... 
  -->
  <!--
    ===============================================================
    Page Number
    ===============================================================
  -->
  <define name="page-number.attlist">
    <ref name="common-inline-properties"/>
    <optional>
      <ref name="wrap-option.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Page number citation
    ===============================================================
  -->
  <define name="page-number-citation.attlist">
    <ref name="common-inline-properties"/>
    <optional>
      <ref name="wrap-option.attr"/>
    </optional>
    <ref name="ref-id.attr"/>
  </define>
  <!--
    ===============================================================
    Atomic elements for index ranges markup
    ===============================================================
  -->
  <define name="begin-index-range.attlist">
    <ref name="id.attr"/>
    <ref name="rx-key.attr"/>
  </define>
  <define name="end-index-range.attlist">
    <ref name="ref-id.attr"/>
  </define>
  <!--
    ===============================================================
    Page number list - index entry
    ===============================================================
  -->
  <define name="page-index.attlist">
    <ref name="common-inline-properties"/>
    <optional>
      <ref name="wrap-option.attr"/>
    </optional>
    <optional>
      <ref name="list-separator.attr"/>
    </optional>
    <optional>
      <ref name="ref-key.attr"/>
    </optional>
  </define>
  <!--
    MEMO: There is no 'ref-key' attribute on page-index now, but it is allowed for 
    backward compatibility.
    MEMO: Actually it makes sense to exclude id/rx:key fom the set of availabe properties 
    for 'index-item', however we prefer no to do it just to avoid creation of yet another content
    model (attribute set) for thid inline element.
  -->
  <define name="index-item.attlist">
    <ref name="common-inline-properties"/>
    <optional>
      <ref name="wrap-option.attr"/>
    </optional>
    <ref name="ref-key.attr"/>
    <optional>
      <ref name="link-back.attr"/>
    </optional>
    <optional>
      <ref name="range-separator.attr"/>
    </optional>
    <optional>
      <ref name="merge-subsequent-page-numbers.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Properties of table formatting objects.
    ===============================================================
    ===============================================================
    Table & Caption.
    ===============================================================
  -->
  <define name="table-and-caption.attlist">
    <ref name="common-block-properties"/>
    <optional>
      <ref name="clear.attr"/>
    </optional>
    <ref name="relative-position-properties"/>
    <ref name="keeps-and-breaks-properties-atomic"/>
  </define>
  <!--
    MEMO: Spec do not allows margins on fo:table-caption that is against common sence 
    since this is a typical container.
    We do allow margins (they are included in common-block-properties).
    'Folint' does the same.
  -->
  <define name="table-caption.attlist">
    <optional>
      <ref name="clear.attr"/>
    </optional>
    <ref name="common-block-properties"/>
    <ref name="relative-position-properties"/>
    <ref name="box-size-properties"/>
  </define>
  <define name="table.attlist">
    <optional>
      <ref name="clear.attr"/>
    </optional>
    <ref name="common-block-properties"/>
    <ref name="box-size-properties"/>
    <ref name="keeps-and-breaks-properties-atomic"/>
    <ref name="table-properties-unheritable"/>
  </define>
  <!--
    ===============================================================
    Table column specifies common properties to ascribe to all
    cells in a column *or a group of columns*. Note that, if both
    'number-columns-repeated' and 'number-columns-spanned' exceed
    1, the column counter is increased by 'number-columns-spanned'.
    it means that you only set properties for columns:
    'column-number'
    'column-number' + 'number-columns-spanned'
    'column-number' + 2 * 'number-columns-spanned'
    and so on, leaving default properties for intermediate columns.
    ===============================================================
  -->
  <define name="table-column.attlist">
    <optional>
      <ref name="column-number.attr"/>
    </optional>
    <optional>
      <ref name="column-width.attr"/>
    </optional>
    <optional>
      <ref name="number-columns-repeated.attr"/>
    </optional>
    <optional>
      <ref name="number-columns-spanned.attr"/>
    </optional>
    <ref name="background-properties"/>
    <!--
      MEMO: Border properties applies to this formatting object only if the value of border-collapse
      for the table is "collapse" or "collapse-with-precedence" 
    -->
    <ref name="border-properties"/>
    <ref name="border-precedence-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Table header, table footer, and table body.
    ===============================================================
  -->
  <define name="row-group.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <ref name="accessibility-properties"/>
    <ref name="aural-properties-unheritable"/>
    <ref name="background-properties"/>
    <!--
      MEMO: Border properties applies to this formatting object only if the value of border-collapse
      for the table is "collapse" or "collapse-with-precedence" 
    -->
    <ref name="border-properties"/>
    <ref name="border-precedence-properties"/>
    <ref name="relative-position-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <define name="table-header.attlist">
    <ref name="row-group.attlist"/>
  </define>
  <define name="table-footer.attlist">
    <ref name="row-group.attlist"/>
  </define>
  <!--
    MEMO: Spec do not list "Keep" properties almong applicable to fo:table-body that is a clear
    case of  errata.
  -->
  <define name="table-body.attlist">
    <ref name="row-group.attlist"/>
    <ref name="keeps-and-breaks-properties-atomic"/>
  </define>
  <!--
    ===============================================================
    Table row.
    ===============================================================
    MEMO: Should we create separate collection of properties in 'properties_groups.rnc'
    based on row-group.attlist?
  -->
  <define name="table-row.attlist">
    <ref name="row-group.attlist"/>
    <ref name="height-properties"/>
    <ref name="keeps-and-breaks-properties-atomic"/>
  </define>
  <!--
    ===============================================================
    Table cell.
    ===============================================================
    MEMO: Spec do not allows margins on fo:table-cell but 'Folint' does.
    We excluded margins from this element and therefor don't use 'common-block-properties'
    MEMO: Spec do not list "Keep" properties almong applicable to fo:table-cell that is a clear
    case of  errata.
  -->
  <define name="table-cell.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <optional>
      <ref name="column-number.attr"/>
    </optional>
    <ref name="accessibility-properties"/>
    <ref name="aural-properties-unheritable"/>
    <ref name="border-padding-background-properties"/>
    <ref name="border-precedence-properties"/>
    <ref name="box-size-properties"/>
    <optional>
      <ref name="ends-row.attr"/>
    </optional>
    <ref name="keeps-and-breaks-properties-atomic"/>
    <optional>
      <ref name="number-columns-spanned.attr"/>
    </optional>
    <optional>
      <ref name="number-rows-spanned.attr"/>
    </optional>
    <optional>
      <ref name="starts-row.attr"/>
    </optional>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Properties of list formatting objects.
    ===============================================================  
    ===============================================================
    List block.
    ===============================================================
  -->
  <define name="list-block.attlist">
    <optional>
      <ref name="clear.attr"/>
    </optional>
    <ref name="common-block-properties"/>
    <ref name="keeps-and-breaks-properties-atomic"/>
    <ref name="relative-position-properties"/>
  </define>
  <!--
    ===============================================================
    List item.
    ===============================================================
  -->
  <define name="list-item.attlist">
    <ref name="common-block-properties"/>
    <ref name="keeps-and-breaks-properties-atomic"/>
    <ref name="relative-position-properties"/>
  </define>
  <!--
    ===============================================================
    List item label and list item body
    ===============================================================
  -->
  <define name="list-item-label.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <ref name="accessibility-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <define name="list-item-body.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <ref name="accessibility-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Floats and footnotes.
    ===============================================================
    MEMO: Outlines can't have id and therefor can't have rx:key properties so we are strict here.
    'Folint' is loose here - it allows use of these properties.
    MEMO: We are forced to create two types of floats: side-floats and before-floats.
  -->
  <define name="side-float.attlist">
    <optional>
      <ref name="side-float.attr"/>
    </optional>
    <optional>
      <ref name="clear.attr"/>
    </optional>
    <ref name="inheritable-properties"/>
  </define>
  <!-- NOTE: before-float can't bear 'clear' property -->
  <define name="before-float.attlist">
    <optional>
      <ref name="before-float.attr"/>
    </optional>
    <ref name="inheritable-properties"/>
  </define>
  <define name="footnote.attlist">
    <ref name="accessibility-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <define name="footnote-body.attlist">
    <ref name="accessibility-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Simple link.
    ===============================================================
  -->
  <define name="basic-link.attlist">
    <ref name="inline-properties"/>
    <optional>
      <ref name="external-destination.attr"/>
    </optional>
    <optional>
      <ref name="internal-destination.attr"/>
    </optional>
    <optional>
      <ref name="indicate-destination.attr"/>
    </optional>
    <optional>
      <ref name="show-destination.attr"/>
    </optional>
    <optional>
      <ref name="destination-placement-offset.attr"/>
    </optional>
    <optional>
      <ref name="target-processing-context.attr"/>
    </optional>
    <optional>
      <ref name="target-presentation-context.attr"/>
    </optional>
    <optional>
      <ref name="target-stylesheet.attr"/>
    </optional>
  </define>
  <!--
    ===============================================================
    Wrappers.
    ===============================================================
  -->
  <define name="wrapper.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Marker. This element may embrace any content but cannot pass
    properties to its children; so, it may not have features other
    than marker-class-name.
    ===============================================================
    MEMO: We are more strict here making marker-class-name attribute a mandatory,
    but marker with no marker-class-name is meaningless.
  -->
  <define name="marker.attlist">
    <ref name="marker-class-name.attr"/>
  </define>
  <!--
    ===============================================================
    Marker retrieval.
    ===============================================================
    FIXME! We are more strict here making retrieve-class-name attribute a mandatory, 
    but marker with no retrieve-class-name is meaningless.
  -->
  <define name="retrieve-marker.attlist">
    <ref name="retrieve-class-name.attr"/>
    <optional>
      <ref name="retrieve-position.attr"/>
    </optional>
    <optional>
      <ref name="retrieve-boundary.attr"/>
    </optional>
    <!--
      MEMO: Is it OK to allow inheritable properties here? There are no explicit arguments
      against it in the spec.
    -->
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Multistate stuff.
    ===============================================================
    ===============================================================
    Switch. 
    ===============================================================
    MEMO: Should we have Aural Properties here as well?
  -->
  <define name="multi-switch.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <optional>
      <ref name="auto-restore.attr"/>
    </optional>
    <ref name="accessibility-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Single case.
    ===============================================================
  -->
  <define name="multi-case.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <optional>
      <ref name="starting-state.attr"/>
    </optional>
    <optional>
      <ref name="case-name.attr"/>
    </optional>
    <optional>
      <ref name="case-title.attr"/>
    </optional>
    <ref name="accessibility-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Toggle. 
    ===============================================================
    MEMO: Should we have here inline-level properties only?
  -->
  <define name="multi-toggle.attlist">
    <optional>
      <ref name="switch-to.attr"/>
    </optional>
    <ref name="accessibility-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Multi-properties.
    ===============================================================
    Should we allow here any possible properties applicable to the objects inside of the flow?
  -->
  <define name="multi-properties.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <ref name="accessibility-properties"/>
    <ref name="inheritable-properties"/>
  </define>
  <!--
    ===============================================================
    Multi property set.
    ===============================================================
    Should we allow here any possible properties applicable to the objects inside of the flow?
  -->
  <define name="multi-property-set.attlist">
    <optional>
      <ref name="id.attr"/>
    </optional>
    <optional>
      <ref name="rx-key.attr"/>
    </optional>
    <ref name="active-state.attr"/>
    <ref name="inheritable-properties"/>
  </define>
</grammar>