aboutsummaryrefslogtreecommitdiffstats
path: root/test/pdf/accessibility/role_non-standard.fo
blob: d3e1a98525d20ccdb08335cbb2fbaa7561259a5f (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
<?xml version="1.0"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- $Id$ -->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" language="en" country="GB">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="page"
      page-height="220pt" page-width="320pt" margin="10pt">
      <fo:region-body/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="page">
    <fo:flow flow-name="xsl-region-body" hyphenate="true" font-family="sans-serif">
      <fo:block role="H1" font-weight="bold" font-size="150%"
        space-before.minimum="1.5em"
        space-before.optimum="2em"
        space-before.maximum="3em"
        space-before.precedence="1000"
        space-after.minimum="0.2em"
        space-after.optimum="0.2em"
        space-after.maximum="0.5em"
        space-after.precedence="1000">Title 1: To Start With</fo:block>
      <fo:block role="Header2" font-weight="bold" font-size="120%"
        space-before.minimum="1.2em"
        space-before.optimum="1.5em"
        space-before.maximum="2em"
        space-before.precedence="900"
        space-after.minimum="0.2em"
        space-after.optimum="0.2em"
        space-after.maximum="0.5em"
        space-after.precedence="900">A Sub-Title With a Non-Standard Role</fo:block>
      <fo:block text-align="justify">Apache FOP (Formatting Objects Processor) is a print formatter 
        driven by XSL formatting objects (XSL-FO) and an output independent formatter. It is a Java 
        application that reads a formatting object (FO) tree and renders the resulting pages to a 
        specified output.</fo:block>
      <fo:block role="H2" font-weight="bold" font-size="120%"
        space-before.minimum="1.2em"
        space-before.optimum="1.5em"
        space-before.maximum="2em"
        space-before.precedence="900"
        space-after.minimum="0.2em"
        space-after.optimum="0.2em"
        space-after.maximum="0.5em"
        space-after.precedence="900">Title 2: Another Sub-Title</fo:block>
      <fo:block text-align="justify">Apache FOP (Formatting Objects Processor) is a print formatter 
        driven by XSL formatting objects (XSL-FO) and an output independent formatter. It is a Java 
        application that reads a formatting object (FO) tree and renders the resulting pages to a 
        specified output.</fo:block>
      <fo:block role="H1" font-weight="bold" font-size="150%"
        space-before.minimum="1.5em"
        space-before.optimum="2em"
        space-before.maximum="3em"
        space-before.precedence="1000"
        space-after.minimum="0.2em"
        space-after.optimum="0.2em"
        space-after.maximum="0.5em"
        space-after.precedence="1000">Title 1: Second Title</fo:block>
      <fo:block role="H2" font-weight="bold" font-size="120%"
        space-before.minimum="1.2em"
        space-before.optimum="1.5em"
        space-before.maximum="2em"
        space-before.precedence="900"
        space-after.minimum="0.2em"
        space-after.optimum="0.2em"
        space-after.maximum="0.5em"
        space-after.precedence="900">Title 2: A Sample Table</fo:block>
      <fo:block>See data below:</fo:block>
      <fo:table table-layout="fixed" width="70%" start-indent="15%" border="0.5pt solid black">
        <fo:table-header start-indent="0" font-weight="bold" role="TableHeader">
          <fo:table-row>
            <fo:table-cell border="0.5pt solid black" padding="2pt">
              <fo:block>Header 1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="0.5pt solid black" padding="2pt">
              <fo:block>Header 2</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-header>
        <fo:table-footer start-indent="0" font-weight="bold">
          <fo:table-row>
            <fo:table-cell border="0.5pt solid black" padding="2pt">
              <fo:block>Footer 1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="0.5pt solid black" padding="2pt">
              <fo:block>Footer 2</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-footer>
        <fo:table-body start-indent="0">
          <fo:table-row>
            <fo:table-cell border="0.5pt solid black" padding="2pt">
              <fo:block>Cell 1.1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="0.5pt solid black" padding="2pt">
              <fo:block>Cell 1.2</fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell border="0.5pt solid black" padding="2pt">
              <fo:block>Cell 2.1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="0.5pt solid black" padding="2pt">
              <fo:block>Cell 2.2</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      <fo:block text-align="justify" space-before="0.5em">That’s all folks.</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>