blob: 97cfb2e1eb3358326da6d6e606e4c81cf5f7446c (
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
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:test="http://xmlgraphics.apache.org/fop/test">
<fo:layout-master-set>
<fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"
margin="20pt">
<fo:region-body />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="normal">
<fo:flow flow-name="xsl-region-body">
<!-- table with explicit columns -->
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="proportional-column-width(1)">
<test:assert property="column-number" expected="1" />
</fo:table-column>
<fo:table-column column-width="proportional-column-width(2)">
<test:assert property="column-number" expected="2" />
</fo:table-column>
<fo:table-column column-width="proportional-column-width(1)">
<test:assert property="column-number" expected="3" />
</fo:table-column>
<fo:table-header>
<fo:table-cell number-columns-spanned="3" starts-row="true" ends-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>header cell</fo:block>
</fo:table-cell>
</fo:table-header>
<fo:table-footer>
<fo:table-cell starts-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>footer cell 1</fo:block>
</fo:table-cell>
<fo:table-cell>
<test:assert property="column-number" expected="2" />
<fo:block>footer cell 2</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true">
<test:assert property="column-number" expected="3" />
<fo:block>footer cell 3</fo:block>
</fo:table-cell>
</fo:table-footer>
<fo:table-body>
<fo:table-cell number-columns-spanned="2" starts-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell>
<test:assert property="column-number" expected="3" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell number-rows-spanned="2" starts-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell>
<test:assert property="column-number" expected="2" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true">
<test:assert property="column-number" expected="3" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell number-rows-spanned="2" starts-row="true">
<test:assert property="column-number" expected="2" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true">
<test:assert property="column-number" expected="3" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell starts-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true">
<test:assert property="column-number" expected="3" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
</fo:table-body>
</fo:table>
<!-- table with implicit columns. -->
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-header>
<fo:table-cell number-columns-spanned="3" starts-row="true" ends-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>header cell</fo:block>
</fo:table-cell>
</fo:table-header>
<fo:table-footer>
<fo:table-cell starts-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>footer cell 1</fo:block>
</fo:table-cell>
<fo:table-cell>
<test:assert property="column-number" expected="2" />
<fo:block>footer cell 2</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true">
<test:assert property="column-number" expected="3" />
<fo:block>footer cell 3</fo:block>
</fo:table-cell>
</fo:table-footer>
<fo:table-body>
<fo:table-cell number-columns-spanned="2" starts-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true">
<test:assert property="column-number" expected="3" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell number-rows-spanned="2" starts-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell>
<test:assert property="column-number" expected="2" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true">
<test:assert property="column-number" expected="3" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell number-rows-spanned="2" starts-row="true">
<test:assert property="column-number" expected="2" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true">
<test:assert property="column-number" expected="3" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell starts-row="true">
<test:assert property="column-number" expected="1" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true">
<test:assert property="column-number" expected="3" />
<fo:block>cell-content</fo:block>
</fo:table-cell>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
|