diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2010-01-13 17:05:59 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2010-01-13 17:05:59 +0000 |
commit | 91cdef3c3337a3e2537be2136a98eb7a7b46cebe (patch) | |
tree | f48386a5e01d5fa6cb5942feacb9cbb37db4716a /test/accessibility/role.fo | |
parent | 27166d6f10d109d339a120e0625073b43c1bf01b (diff) | |
download | xmlgraphics-fop-91cdef3c3337a3e2537be2136a98eb7a7b46cebe.tar.gz xmlgraphics-fop-91cdef3c3337a3e2537be2136a98eb7a7b46cebe.zip |
Added possibility to customize PDF tagging via the role property
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@898840 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/accessibility/role.fo')
-rw-r--r-- | test/accessibility/role.fo | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/test/accessibility/role.fo b/test/accessibility/role.fo new file mode 100644 index 000000000..e284cde9c --- /dev/null +++ b/test/accessibility/role.fo @@ -0,0 +1,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"> + <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" language="en" country="GB"> + <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="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 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="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"> + <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> |