| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| 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. |
| --> |
| <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> |
| <fo:layout-master-set> |
| <!-- layout for all pages --> |
| <fo:simple-page-master master-name="main" |
| page-height="12cm" page-width="20cm" |
| margin-top="2cm" margin-bottom="2cm" |
| margin-left="2cm" margin-right="2cm"> |
| <fo:region-body margin-top="0cm"/> |
| <fo:region-before extent="0cm"/> |
| <fo:region-after extent="0cm"/> |
| </fo:simple-page-master> |
| </fo:layout-master-set> |
| |
| <!-- content --> |
| <fo:page-sequence master-reference="main"> |
| <fo:flow flow-name="xsl-region-body"> |
| <fo:block padding="24pt"> |
| <fo:external-graphic src="/resources/images/cocoon.gif"/> |
| </fo:block> |
| <fo:block font-size="18pt"> |
| Congratulations! |
| </fo:block> |
| <fo:block font-size="12pt"> |
| If you see this text in a PDF document, it means that Cocoon and FOP |
| were able to generate it from the minimal.fo.xml example document. If |
| you see additionally an image above, it means that even Batik and the |
| resolving of the image path works! |
| </fo:block> |
| </fo:flow> |
| </fo:page-sequence> |
| </fo:root> |