This commit is contained in:
Oliver.Warz@pdv.de 2022-05-01 12:45:05 +02:00
parent 818f11430c
commit 7d8dfd1577
15 changed files with 2154 additions and 3 deletions

22
.gitignore vendored
View File

@ -21,3 +21,25 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
*.bak
.adf
.data
.idea
**/.classpath
**/.project
**/.settings
**/build
**/dist
**/nbproject
**/target
**/*.log
**/nb-configuration.xml
**/rebel.xml
**/rebel-remote.xml
.gradle
**/*.iml
**/.factorypath
buildSrc
**/.idea
**/Debug

30
CHANGELOG Normal file
View File

@ -0,0 +1,30 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.9.3] - 2022-04-04
### Changed
- uptake javamelody 1.91.0
- uptake maven plugins
## [0.9.2] - 2022-01-31
### Added
- 2 tests
### Changed
- cleanup samples
- uptake apache fop 2.7
- uptake javamelody 1.90.0
## [0.9.1] - 2022-01-28
### Added
- initial version
- apache fop 2.6
[Unreleased]: http://gitlab.pdv.lan/oliver1/fop4apex/compare/0.9.3...master
[0.9.3]: http://gitlab.pdv.lan/oliver1/fop4apex/compare/0.9.2...0.9.3
[0.9.2]: hhttp://gitlab.pdv.lan/oliver1/fop4apex/-/tags/0.9.2

View File

@ -178,7 +178,7 @@
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Copyright 2022 Oliver Warz
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1 +1,46 @@
# fop4apex
# fop4apex
Servlet for Oracle APEX to run PDF Reports based on Apache FOP
Fahrdienst-Anwendung / Kostenblatt
* Uses Apache FOP for rendering
https://xmlgraphics.apache.org/fop/
* Uses JavaMelody for monitoring
https://github.com/javamelody/javamelody/wiki
* Use Java 8 LTS (also tested with Java 17)
## Run tests
`mvn test`
## Build
`mvn package verify`
## Upgrade
* set new version in pom.xml
* check dependent libraries for updates
* run tests and build
## Installation
* rename target/fop4apex*.war to fop4apex.war
* copy fop4apex.war to tomcat webapps folder
* Oracle APEX - Sample Settings
* PrintServer External (Apache FOP)
* Protocol HTTP / HTTPS
* Host 127.0.0.1
* Port 8080
* Script: /fop4apex/pdf
* Timeout 300
### Debugging
Add to Tomcat logging.properties:
```
org.apache.tomcat.util.http.Parameters.level = ALL
de.pdv.apex.level = ALL
```
### Deploy to tomcat 9.x (IntelliJ / Netbeans)
Run http://localhost:port/
Example:
* http://localhost:8080/fop4apex_war_exploded/
* http://localhost:8080/fop4apex_war_exploded/monitoring

134
pom.xml Normal file
View File

@ -0,0 +1,134 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.pdv.apex</groupId>
<artifactId>fop4apex</artifactId>
<version>0.9.3</version>
<name>fop4apex</name>
<packaging>war</packaging>
<url>https://www.pdv.de</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<junit.version>5.8.2</junit.version>
</properties>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.pdfbox/pdfbox -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.25</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/fop-core -->
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop-core</artifactId>
<version>2.7</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/net.bull.javamelody/javamelody-core -->
<dependency>
<groupId>net.bull.javamelody</groupId>
<artifactId>javamelody-core</artifactId>
<version>1.91.0</version>
<scope>compile</scope>
</dependency>
<!-- Start: Security fixes -->
<!-- https://mvnrepository.com/artifact/org.apache.pdfbox/fontbox -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>fontbox</artifactId>
<version>2.0.25</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-logging/commons-logging -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
<scope>compile</scope>
</dependency>
<!-- End: Security fixes -->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>7.0.4</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M6</version>
</plugin>
<!--
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<from>
<image>compile.pdv.lan:8001/product/base/vis-tomcat:9.0</image>
</from>
<to>
<image>fop4apex</image>
</to>
<container>
<appRoot>/opt/pdv/webapps/fop4apex</appRoot>
</container>
</configuration>
</plugin>
-->
</plugins>
</build>
</project>

View File

@ -0,0 +1,147 @@
package de.pdv.apex;
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.apps.Fop;
import org.apache.fop.apps.FopFactory;
import org.apache.fop.apps.MimeConstants;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.stream.StreamSource;
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* @author oliver1
*/
@WebServlet(name = "pdf", urlPatterns = {"/pdf"})
public class PdfServlet extends HttpServlet {
private static final Logger logger = Logger.getLogger(PdfServlet.class.getName());
private final TransformerFactory tFactory = TransformerFactory.newInstance();
public void init() {
}
// <editor-fold default state="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
/**
* Handles the HTTP <code>GET</code> method.
*
* @param request servlet request
* @param response servlet response
*/
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException {
logger.log(Level.FINEST,"Finest output");
logger.log(Level.FINER,"Finer output");
logger.log(Level.FINE,"Fine output");
logger.log(Level.INFO,"Info output");
logger.log(Level.INFO,"doGet");
try {
response.setContentType("application/pdf");
// response.setDateHeader("Expires", System.currentTimeMillis() + cacheExpiringDuration * 1000);
FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, response.getOutputStream());
Transformer transformer = tFactory.newTransformer();
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("samples/helloWorld.fo");
Source src = new StreamSource(inputStream);
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src, res);
logger.log(Level.INFO,"Process complete");
} catch (Exception ex) {
throw new ServletException(ex);
}
}
/**
* Handles the HTTP <code>POST</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
*/
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException {
ServletContext context = getServletContext();
logger.log(Level.FINEST,"Finest output");
logger.log(Level.FINER,"Finer output");
logger.log(Level.FINE,"Fine output");
logger.log(Level.INFO,"Info output");
logger.log(Level.INFO,"doPost");
try {
String contentType = request.getContentType();
String templateFile = "template.fo";
String templateData = "xml data";
// String pdfFileName = "";
if (request.getParameter("template") != null)
templateFile = request.getParameter("template");
if (request.getParameter("xml") != null)
templateData = request.getParameter("xml");
logger.log(Level.FINEST,"Working directory: " + (new File("dummy1.txt")).getAbsolutePath());
logger.log(Level.FINEST,"Template file: " + templateFile);
logger.log(Level.FINEST,"Template data: " + templateData);
logger.log(Level.FINEST,"Content type: " + contentType);
String pdfFileName = "Kostenblatt.pdf";
response.setContentType("application/pdf");
response.setHeader("Content-disposition", "attachment; filename=" + pdfFileName);
// response.setDateHeader("Expires", System.currentTimeMillis() + cacheExpiringDuration * 1000);
FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
// Construct fop with desired output format
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, response.getOutputStream());
// Setup XSLT
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer( new StreamSource(new StringReader(templateFile)));
// Set the value of a <param> in the stylesheet
transformer.setParameter("versionParam", "2.0");
// Setup input for XSLT transformation
Source src = new StreamSource(new StringReader(templateData));
// Resulting SAX events (the generated FO) must be piped through to FOP
Result res = new SAXResult(fop.getDefaultHandler());
// Start XSLT transformation and FOP processing
transformer.transform(src, res);
logger.log(Level.INFO,"Process complete");
} catch (Exception e) {
context.log(e.getMessage(), e);
throw new ServletException(e.getMessage());
}
// processRequest(request, response);
}
/**
* Returns a short description of the servlet.
*
* @return a String containing servlet description
*/
@Override
public String getServletInfo() {
return "APEX FOP Server";
}// </editor-fold>
@Override
public void destroy() {
}
}

View File

@ -0,0 +1,30 @@
<?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.
-->
<!-- $Id$ -->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simpleA4">
<fo:flow flow-name="xsl-region-body">
<fo:block>Hello World!</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

View File

@ -0,0 +1,21 @@
<?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.
-->
<Context antiResourceLocking="false" >
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
</Context>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
<filter>
<filter-name>javamelody</filter-name>
<filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
<async-supported>true</async-supported>
<init-param>
<param-name>update-check-disabled</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>javamelody</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ASYNC</dispatcher>
</filter-mapping>
<listener>
<listener-class>net.bull.javamelody.SessionListener</listener-class>
</listener>
</web-app>

68
src/main/webapp/index.jsp Normal file
View File

@ -0,0 +1,68 @@
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<title>Apache FOP for Oracle APEX</title>
<style>
body {background-color: powderblue;}
h1 {color: blue;}
p {color: red;}
</style>
</head>
<body>
<h1>JSP - Apache FOP (Formatting Objects Processor) integration for Oracle APEX</h1>
<br/>
<%--suppress HtmlUnknownTarget --%>
<a href="pdf">pdf Servlet / Hello World / fo2pdf</a><br/>
<%--suppress HtmlUnknownTarget --%>
<a href="monitoring">JavaMelody Monitoring</a>
<h2>Sample APEX Settings</h2>
<table>
<thead>
<tr>
<td><b>Parameter</b></td>
<td><b>Value</b></td>
</tr>
</thead>
<tr>
<td>PrintServer</td>
<td>External (Apache FOP)</td>
</tr>
<tr>
<td>Protocol</td>
<td>HTTP / HTTPS</td>
</tr>
<tr>
<td>Host</td>
<td>127.0.0.1</td>
</tr>
<tr>
<td>Port</td>
<td>8080</td>
</tr>
<tr>
<td>Script</td>
<td>${pageContext.request.contextPath}/pdf</td>
</tr>
<tr>
<td>Timeout</td>
<td>300</td>
</tr>
</table>
<h2>Debugging</h2>
<span>
# Add to logging.properties<br/>
org.apache.tomcat.util.http.Parameters.level = ALL<br/>
de.pdv.apex.level = ALL
</span>
<span>
<h2>Server Info</h2>
Server Version: <%= application.getServerInfo() %><br/>
Servlet Version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %><br/>
JSP Version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br/>
Web Application Context Path = ${pageContext.request.contextPath}<br/>
</span>
</body>
</html>

View File

@ -0,0 +1,126 @@
package de.pdv.apex;
import org.apache.fop.apps.*;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.text.PDFTextStripper;
import org.apache.pdfbox.text.PDFTextStripperByArea;
import org.junit.jupiter.api.Test;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.stream.StreamSource;
import java.io.*;
import java.nio.file.Files;
import java.util.List;
class ExampleFO2PDFTest {
// configure fopFactory as desired
private final FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
/**
* Converts an FO file to a PDF file using FOP
*
* @param fo the FO file
* @param pdf the target PDF file
* @throws IOException In case of an I/O problem
*/
public void convertFO2PDFHelper(InputStream fo, File pdf) throws IOException {
OutputStream out = null;
try {
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
// configure foUserAgent as desired
// Setup output stream. Note: Using BufferedOutputStream
// for performance reasons (helpful with FileOutputStreams).
out = new FileOutputStream(pdf);
out = new BufferedOutputStream(out);
// Construct fop with desired output format
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
// Setup JAXP using identity transformer
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer(); // identity transformer
// Setup input stream
Source src = new StreamSource(fo);
// Resulting SAX events (the generated FO) must be piped through to FOP
Result res = new SAXResult(fop.getDefaultHandler());
// Start XSLT transformation and FOP processing
transformer.transform(src, res);
// Result processing
FormattingResults foResults = fop.getResults();
@SuppressWarnings("rawtypes") List pageSequences = foResults.getPageSequences();
for (Object pageSequence : pageSequences) {
PageSequenceResults pageSequenceResults = (PageSequenceResults) pageSequence;
System.out.println("PageSequence "
+ (String.valueOf(pageSequenceResults.getID()).length() > 0
? pageSequenceResults.getID() : "<no id>")
+ " generated " + pageSequenceResults.getPageCount() + " pages.");
}
System.out.println("Generated " + foResults.getPageCount() + " pages in total.");
} catch (Exception e) {
e.printStackTrace(System.err);
System.exit(-1);
} finally {
assert out != null;
out.close();
}
}
@Test
void convertFO2PDF() throws Exception {
System.out.println("FOP ExampleFO2PDF\n");
System.out.println("Preparing...");
//Setup directories
File baseDir = new File(".");
File outDir = new File(baseDir, "target");
boolean bSuccess = outDir.mkdirs();
if (!bSuccess)
System.out.println("mkdirs result: false");
ExampleFO2PDFTest app = new ExampleFO2PDFTest();
//Setup input and output files
InputStream inputStream = app.getClass().getClassLoader().getResourceAsStream("samples/helloWorld.fo");
File pdfFile = new File(outDir, "ResultFO2PDF.pdf");
System.out.println("Input: XSL-FO (" + inputStream + ")");
System.out.println("Output: PDF (" + pdfFile + ")");
System.out.println();
System.out.println("Transforming...");
app.convertFO2PDFHelper(inputStream, pdfFile);
if (!pdfFile.exists())
throw new Exception("result file missing");
try (PDDocument document = PDDocument.load(pdfFile)) {
document.getClass();
if (!document.isEncrypted()) {
PDFTextStripperByArea stripper = new PDFTextStripperByArea();
stripper.setSortByPosition(true);
PDFTextStripper tStripper = new PDFTextStripper();
String pdfFileInText = tStripper.getText(document);
String lines[] = pdfFileInText.split("\\r?\\n");
for (String line : lines) {
System.out.println(line);
}
System.out.println("Pages: " + document.getNumberOfPages());
}
}
System.out.println("Filesize (Bytes): " + Files.size(pdfFile.toPath()));
System.out.println("Success!");
}
}

View File

@ -0,0 +1,87 @@
package de.pdv.apex;
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.apps.Fop;
import org.apache.fop.apps.FopFactory;
import org.apache.fop.apps.MimeConstants;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.junit.jupiter.api.Test;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.stream.StreamSource;
import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
class ExampleXML2PDFTest {
@Test
void convertXML2PDF() throws Exception {
System.out.println("FOP ExampleXML2PDF\n");
System.out.println("Preparing...");
// Setup directories
File baseDir = new File(".");
File outDir = new File(baseDir, "target");
boolean bSuccess = outDir.mkdirs();
if (!bSuccess)
System.out.println("mkdirs result: false");
ExampleXML2PDFTest app = new ExampleXML2PDFTest();
// Setup input and output files
InputStream xsltFile = app.getClass().getClassLoader().getResourceAsStream("samples/kostenblatt_2014.xsl");
InputStream xmlFile = app.getClass().getClassLoader().getResourceAsStream("samples/kostenblatt_2014.xml");
File pdfFile = new File(outDir, "ResultXML2PDF.pdf");
System.out.println("Input: XML (" + xmlFile + ")");
System.out.println("Stylesheet: " + xsltFile);
System.out.println("Output: PDF (" + pdfFile + ")");
System.out.println();
System.out.println("Transforming...");
// configure fopFactory as desired
final FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
// configure foUserAgent as desired
// Setup output
OutputStream out = new java.io.FileOutputStream(pdfFile);
out = new java.io.BufferedOutputStream(out);
// Construct fop with desired output format
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
// Setup XSLT
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer(new StreamSource(xsltFile));
// Set the value of a <param> in the stylesheet
transformer.setParameter("versionParam", "2.0");
// Setup input for XSLT transformation
Source src = new StreamSource(xmlFile);
// Resulting SAX events (the generated FO) must be piped through to FOP
Result res = new SAXResult(fop.getDefaultHandler());
// Start XSLT transformation and FOP processing
transformer.transform(src, res);
//close
out.close();
if (!pdfFile.exists())
throw new Exception("result file missing");
PDDocument document = PDDocument.load(pdfFile);
System.out.println("Pages: " + document.getNumberOfPages());
System.out.println("Filesize (Bytes): " + Files.size(pdfFile.toPath()));
System.out.println("Success!");
}
}

View File

@ -0,0 +1,30 @@
<?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.
-->
<!-- $Id$ -->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simpleA4">
<fo:flow flow-name="xsl-region-body">
<fo:block>Hello World!</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

View File

@ -0,0 +1,685 @@
<?xml version="1.0" encoding="UTF-8"?>
<DOCUMENT>
<ROWSET>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A07</DATEN>
<DATEN_NO>7</DATEN_NO>
<EINSATZ>Arbeitstage</EINSATZ>
<EINHEIT>(AT)</EINHEIT>
<JAN>23</JAN>
<FEB></FEB>
<MRZ></MRZ>
<APR></APR>
<MAI></MAI>
<JUN></JUN>
<JUL></JUL>
<AUG></AUG>
<SEP></SEP>
<OKT></OKT>
<NOV></NOV>
<DEZ></DEZ>
<SUMME>23</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A08</DATEN>
<DATEN_NO>8</DATEN_NO>
<EINSATZ>Einsatztage</EINSATZ>
<EINHEIT>(ET)</EINHEIT>
<JAN>18</JAN>
<FEB></FEB>
<MRZ></MRZ>
<APR></APR>
<MAI></MAI>
<JUN></JUN>
<JUL></JUL>
<AUG></AUG>
<SEP></SEP>
<OKT></OKT>
<NOV></NOV>
<DEZ></DEZ>
<SUMME>18</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A09</DATEN>
<DATEN_NO>9</DATEN_NO>
<EINSATZ>Nutzungsfrequenz</EINSATZ>
<EINHEIT>(ETx100/AT)</EINHEIT>
<JAN>78</JAN>
<FEB></FEB>
<MRZ></MRZ>
<APR></APR>
<MAI></MAI>
<JUN></JUN>
<JUL></JUL>
<AUG></AUG>
<SEP></SEP>
<OKT></OKT>
<NOV></NOV>
<DEZ></DEZ>
<SUMME>78</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A10</DATEN>
<DATEN_NO>10</DATEN_NO>
<EINSATZ>gefahrene km</EINSATZ>
<EINHEIT></EINHEIT>
<JAN>2.832</JAN>
<FEB>0</FEB>
<MRZ>0</MRZ>
<APR>0</APR>
<MAI>0</MAI>
<JUN>0</JUN>
<JUL>0</JUL>
<AUG>0</AUG>
<SEP>0</SEP>
<OKT>0</OKT>
<NOV>0</NOV>
<DEZ>0</DEZ>
<SUMME>2.832</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A11</DATEN>
<DATEN_NO>11</DATEN_NO>
<EINSATZ>Kraftstoff getankt</EINSATZ>
<EINHEIT>(l/kg)</EINHEIT>
<JAN>241,24</JAN>
<FEB>0,00</FEB>
<MRZ>0,00</MRZ>
<APR>0,00</APR>
<MAI>0,00</MAI>
<JUN>0,00</JUN>
<JUL>0,00</JUL>
<AUG>0,00</AUG>
<SEP>0,00</SEP>
<OKT>0,00</OKT>
<NOV>0,00</NOV>
<DEZ>0,00</DEZ>
<SUMME>241,24</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A12</DATEN>
<DATEN_NO>12</DATEN_NO>
<EINSATZ>Kraftstoff bezahlt</EINSATZ>
<EINHEIT>(EUR je l/kg)</EINHEIT>
<JAN>285,72</JAN>
<FEB>0,00</FEB>
<MRZ>0,00</MRZ>
<APR>0,00</APR>
<MAI>0,00</MAI>
<JUN>0,00</JUN>
<JUL>0,00</JUL>
<AUG>0,00</AUG>
<SEP>0,00</SEP>
<OKT>0,00</OKT>
<NOV>0,00</NOV>
<DEZ>0,00</DEZ>
<SUMME>285,72</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A13</DATEN>
<DATEN_NO>13</DATEN_NO>
<EINSATZ>Kraftstoff Liter-Preis</EINSATZ>
<EINHEIT>(EUR je l/kg)</EINHEIT>
<JAN>1,18</JAN>
<FEB></FEB>
<MRZ></MRZ>
<APR></APR>
<MAI></MAI>
<JUN></JUN>
<JUL></JUL>
<AUG></AUG>
<SEP></SEP>
<OKT></OKT>
<NOV></NOV>
<DEZ></DEZ>
<SUMME>1,18</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A14</DATEN>
<DATEN_NO>14</DATEN_NO>
<EINSATZ>Kraftstoff Verbrauch</EINSATZ>
<EINHEIT>(l je 100 km)</EINHEIT>
<JAN>8,52</JAN>
<FEB></FEB>
<MRZ></MRZ>
<APR></APR>
<MAI></MAI>
<JUN></JUN>
<JUL></JUL>
<AUG></AUG>
<SEP></SEP>
<OKT></OKT>
<NOV></NOV>
<DEZ></DEZ>
<SUMME>8,52</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A15</DATEN>
<DATEN_NO>15</DATEN_NO>
<EINSATZ>ÃÂl nachgefüllt</EINSATZ>
<EINHEIT>(l)</EINHEIT>
<JAN>0,00</JAN>
<FEB>0,00</FEB>
<MRZ>0,00</MRZ>
<APR>0,00</APR>
<MAI>0,00</MAI>
<JUN>0,00</JUN>
<JUL>0,00</JUL>
<AUG>0,00</AUG>
<SEP>0,00</SEP>
<OKT>0,00</OKT>
<NOV>0,00</NOV>
<DEZ>0,00</DEZ>
<SUMME>0,00</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A16</DATEN>
<DATEN_NO>16</DATEN_NO>
<EINSATZ>ÃÂl bezahlt</EINSATZ>
<EINHEIT>(EUR)</EINHEIT>
<JAN>0,00</JAN>
<FEB>0,00</FEB>
<MRZ>0,00</MRZ>
<APR>0,00</APR>
<MAI>0,00</MAI>
<JUN>0,00</JUN>
<JUL>0,00</JUL>
<AUG>0,00</AUG>
<SEP>0,00</SEP>
<OKT>0,00</OKT>
<NOV>0,00</NOV>
<DEZ>0,00</DEZ>
<SUMME>0,00</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A17</DATEN>
<DATEN_NO>17</DATEN_NO>
<EINSATZ>Kosten Reparatur/Insp.</EINSATZ>
<EINHEIT>(EUR)</EINHEIT>
<JAN>0,00</JAN>
<FEB>0,00</FEB>
<MRZ>0,00</MRZ>
<APR>0,00</APR>
<MAI>0,00</MAI>
<JUN>0,00</JUN>
<JUL>0,00</JUL>
<AUG>0,00</AUG>
<SEP>0,00</SEP>
<OKT>0,00</OKT>
<NOV>0,00</NOV>
<DEZ>0,00</DEZ>
<SUMME>0,00</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A18</DATEN>
<DATEN_NO>18</DATEN_NO>
<EINSATZ>Kosten Zubehör</EINSATZ>
<EINHEIT>(EUR)</EINHEIT>
<JAN>38,56</JAN>
<FEB>0,00</FEB>
<MRZ>0,00</MRZ>
<APR>0,00</APR>
<MAI>0,00</MAI>
<JUN>0,00</JUN>
<JUL>0,00</JUL>
<AUG>0,00</AUG>
<SEP>0,00</SEP>
<OKT>0,00</OKT>
<NOV>0,00</NOV>
<DEZ>0,00</DEZ>
<SUMME>38,56</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A19</DATEN>
<DATEN_NO>19</DATEN_NO>
<EINSATZ>Kraftfahrzeugsteuer</EINSATZ>
<EINHEIT>(EUR)</EINHEIT>
<JAN>0,00</JAN>
<FEB>0,00</FEB>
<MRZ>0,00</MRZ>
<APR>0,00</APR>
<MAI>0,00</MAI>
<JUN>0,00</JUN>
<JUL>0,00</JUL>
<AUG>0,00</AUG>
<SEP>0,00</SEP>
<OKT>0,00</OKT>
<NOV>0,00</NOV>
<DEZ>0,00</DEZ>
<SUMME>0,00</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A20</DATEN>
<DATEN_NO>20</DATEN_NO>
<EINSATZ>Kosten Leasingrate</EINSATZ>
<EINHEIT>(EUR)</EINHEIT>
<JAN>226,10</JAN>
<FEB>226,10</FEB>
<MRZ>226,10</MRZ>
<APR>226,10</APR>
<MAI>226,10</MAI>
<JUN>226,10</JUN>
<JUL>226,10</JUL>
<AUG>226,10</AUG>
<SEP>226,10</SEP>
<OKT>0,00</OKT>
<NOV>0,00</NOV>
<DEZ>0,00</DEZ>
<SUMME>2.034,90</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A21</DATEN>
<DATEN_NO>21</DATEN_NO>
<EINSATZ>Summe aller Kosten</EINSATZ>
<EINHEIT>(EUR)</EINHEIT>
<JAN>554,87</JAN>
<FEB>230,59</FEB>
<MRZ>230,59</MRZ>
<APR>230,59</APR>
<MAI>230,59</MAI>
<JUN>226,10</JUN>
<JUL>230,59</JUL>
<AUG>230,59</AUG>
<SEP>226,10</SEP>
<OKT>0,00</OKT>
<NOV>0,00</NOV>
<DEZ>0,00</DEZ>
<SUMME>2.390,61</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A22</DATEN>
<DATEN_NO>22</DATEN_NO>
<EINSATZ>km-Kosten</EINSATZ>
<EINHEIT>(EUR/km)</EINHEIT>
<JAN>0,20</JAN>
<FEB></FEB>
<MRZ></MRZ>
<APR></APR>
<MAI></MAI>
<JUN></JUN>
<JUL></JUL>
<AUG></AUG>
<SEP></SEP>
<OKT></OKT>
<NOV></NOV>
<DEZ></DEZ>
<SUMME>0,84</SUMME>
</ROW>
<ROW>
<DATUM>Dienstag , 18. Januar 2022</DATUM>
<JAHR>2019</JAHR>
<ID_KFZ>605</ID_KFZ>
<KENNZEICHEN>THL 2-1</KENNZEICHEN>
<FAHRZEUGTYP>BMW 730d xDrive (Leasing-PKW)</FAHRZEUGTYP>
<FAHRGESTELLNR>WBA7C41010BR89892</FAHRGESTELLNR>
<DAT_ZULASSUNG>01.10.2018</DAT_ZULASSUNG>
<DAT_AUSSONDERUNG></DAT_AUSSONDERUNG>
<DAT_UEBERNAHME>01.10.2018</DAT_UEBERNAHME>
<FAHRERTYP_SELBSTFAHRER>nein</FAHRERTYP_SELBSTFAHRER>
<NEUPREIS></NEUPREIS>
<KFZSTEUER>0,00</KFZSTEUER>
<LEASINGRATE>226,10</LEASINGRATE>
<NUTZUNG>Regio/Fern</NUTZUNG>
<KRAFTSTOFF>Diesel</KRAFTSTOFF>
<ID_NUTZUNG>F</ID_NUTZUNG>
<KMSTAND_JA>9.361</KMSTAND_JA>
<KMSTAND_JE>12.193</KMSTAND_JE>
<AUSLASTUNGSQUOTE>8</AUSLASTUNGSQUOTE>
<GEZ>4,49</GEZ>
<FUNK>0,00</FUNK>
<DATEN>A23</DATEN>
<DATEN_NO>23</DATEN_NO>
<EINSATZ>Kosten pro ET</EINSATZ>
<EINHEIT>(EUR/ET)</EINHEIT>
<JAN>30,83</JAN>
<FEB></FEB>
<MRZ></MRZ>
<APR></APR>
<MAI></MAI>
<JUN></JUN>
<JUL></JUL>
<AUG></AUG>
<SEP></SEP>
<OKT></OKT>
<NOV></NOV>
<DEZ></DEZ>
<SUMME>132,81</SUMME>
</ROW>
</ROWSET>
</DOCUMENT>

View File

@ -0,0 +1,701 @@
<?xml version = '1.0' encoding = 'utf-8'?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Oliver.Warz@pdv.de
TMIL
2019-02-08 Initiale Version
-->
<xsl:variable name="_XDOFOPOS" select="''"/>
<xsl:variable name="_XDOFOPOS2" select="number(1)"/>
<xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
<xsl:variable name="_XDOFOOSTOTAL" select="number(0)"/>
<xsl:attribute-set name="padding">
<xsl:attribute name="padding-bottom">0.25pt</xsl:attribute>
<xsl:attribute name="padding-top">0.25pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="text">
<xsl:attribute name="text-align">start</xsl:attribute>
<xsl:attribute name="orphans">2</xsl:attribute>
<xsl:attribute name="start-indent">0.0pt</xsl:attribute>
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
<xsl:attribute name="padding-top">0.0pt</xsl:attribute>
<xsl:attribute name="end-indent">0.0pt</xsl:attribute>
<xsl:attribute name="padding-bottom">0.0pt</xsl:attribute>
<xsl:attribute name="height">0.0pt</xsl:attribute>
<xsl:attribute name="widows">2</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="align-left">
<xsl:attribute name="text-align">left</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="align-center">
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="align-right">
<xsl:attribute name="text-align">right</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="footer">
<xsl:attribute name="text-align">right</xsl:attribute>
<xsl:attribute name="start-indent">5.4pt</xsl:attribute>
<xsl:attribute name="end-indent">5.4pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="text_2">
<xsl:attribute name="start-indent">5.4pt</xsl:attribute>
<xsl:attribute name="end-indent">23.4pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="text_20">
<xsl:attribute name="height">13.872pt</xsl:attribute>
<xsl:attribute name="end-indent">5.4pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="text_0">
<xsl:attribute name="end-indent">5.4pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="page-header">
</xsl:attribute-set>
<xsl:attribute-set name="page-footer">
</xsl:attribute-set>
<xsl:attribute-set name="body-font">
</xsl:attribute-set>
<xsl:attribute-set name="page-number">
<xsl:attribute name="height">13.872pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="header-font">
<xsl:attribute name="white-space-collapse">false</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="border">
<xsl:attribute name="border-start-style">solid</xsl:attribute>
<xsl:attribute name="border-end-style">solid</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="cell">
<xsl:attribute name="padding-start">5.15pt</xsl:attribute>
<xsl:attribute name="vertical-align">top</xsl:attribute>
<xsl:attribute name="padding-top">0.0pt</xsl:attribute>
<xsl:attribute name="padding-end">5.15pt</xsl:attribute>
<xsl:attribute name="number-columns-spanned">1</xsl:attribute>
<xsl:attribute name="height">0.0pt</xsl:attribute>
<xsl:attribute name="padding-bottom">0.0pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="header-color">
</xsl:attribute-set>
<!-- Attribut-Sets fuer Tabellenzellen -->
<xsl:attribute-set name="cell-style">
<xsl:attribute name="font-size">7pt</xsl:attribute>
<xsl:attribute name="border-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="block-style">
<xsl:attribute name="font-size">7pt</xsl:attribute>
<xsl:attribute name="line-height">16pt</xsl:attribute>
<xsl:attribute name="start-indent">1mm</xsl:attribute>
<xsl:attribute name="end-indent"> 1mm</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="block-style-5">
<xsl:attribute name="font-size">6pt</xsl:attribute>
<xsl:attribute name="line-height">16pt</xsl:attribute>
<xsl:attribute name="start-indent">1mm</xsl:attribute>
<xsl:attribute name="end-indent"> 1mm</xsl:attribute>
<xsl:attribute name="font-style">italic</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="block-style-8">
<xsl:attribute name="font-size">8pt</xsl:attribute>
<xsl:attribute name="line-height">16pt</xsl:attribute>
<xsl:attribute name="start-indent">1mm</xsl:attribute>
<xsl:attribute name="end-indent"> 1mm</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="block-style-none">
<xsl:attribute name="start-indent">1mm</xsl:attribute>
<xsl:attribute name="end-indent"> 1mm</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="block-style-none">
<xsl:attribute name="start-indent">1mm</xsl:attribute>
<xsl:attribute name="end-indent"> 1mm</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="cell-style-header-a">
<xsl:attribute name="font-size">8.0pt</xsl:attribute>
<xsl:attribute name="height">8.0pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="font-family">Helvetica</xsl:attribute>
<xsl:attribute name="border-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="background-color">#d6d6d6</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="cell-style-header-b">
<xsl:attribute name="font-size">6.0pt</xsl:attribute>
<xsl:attribute name="height">6.0pt</xsl:attribute>
<xsl:attribute name="border-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="background-color">#d6d6d6</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="cell-style-text-black">
<xsl:attribute name="font-size">14.0pt</xsl:attribute>
<xsl:attribute name="height">14.0pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="font-family">Helvetica</xsl:attribute>
<xsl:attribute name="border-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="color">black</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="cell-style-text-red">
<xsl:attribute name="font-size">14.0pt</xsl:attribute>
<xsl:attribute name="height">14.0pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="font-family">Helvetica</xsl:attribute>
<xsl:attribute name="border-width">0.0pt</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="color">red</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="cell-style-text-none">
<xsl:attribute name="font-size">3pt</xsl:attribute>
<xsl:attribute name="height">3pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="font-family">Helvetica</xsl:attribute>
<xsl:attribute name="border-width">0.0pt</xsl:attribute>
<xsl:attribute name="border-style">none</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="color">black</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="cell-style-text-8">
<xsl:attribute name="font-size">8.0pt</xsl:attribute>
<xsl:attribute name="height">8.0pt</xsl:attribute>
<xsl:attribute name="font-family">Helvetica</xsl:attribute>
<xsl:attribute name="border-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="cell-style-text-7">
<xsl:attribute name="font-size">7pt</xsl:attribute>
<xsl:attribute name="border-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
</xsl:attribute-set>
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="master0" margin-left="60.6pt" margin-right="66.6pt" page-height="595.3pt" page-width="841.9pt" margin-top="36.0pt" margin-bottom="36.0pt">
<fo:region-body region-name="region-body" margin-top="24.0pt" margin-bottom="34.0pt"/>
<fo:region-before region-name="region-header" extent="54.0pt"/>
<fo:region-after region-name="region-footer" extent="54.0pt" display-align="after"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="master0">
<xsl:variable name="_PW" select="number(841.9)"/>
<xsl:variable name="_PH" select="number(595.3)"/>
<xsl:variable name="_ML" select="number(72.0)"/>
<xsl:variable name="_MR" select="number(72.0)"/>
<xsl:variable name="_MT" select="number(90.0)"/>
<xsl:variable name="_MB" select="number(90.0)"/>
<xsl:variable name="_HY" select="number(36.0)"/>
<xsl:variable name="_FY" select="number(36.0)"/>
<xsl:variable name="_SECTION_NAME" select="string('master0')"/>
<!-- <fo:static-content flow-name="region-footer">
<fo:block xsl:use-attribute-sets="text footer">
<fo:inline xsl:use-attribute-sets="body-font page-number">
<fo:page-number/>
</fo:inline>
</fo:block>
<fo:block xsl:use-attribute-sets="text text_2">
<fo:inline xsl:use-attribute-sets="page-footer">PAGE_FOOTER</fo:inline>
</fo:block>
</fo:static-content>
-->
<fo:flow flow-name="region-body">
<fo:table border-style="none" table-layout="fixed" width="100">
<fo:table-column column-width="5.4cm"/>
<fo:table-column column-width="15.7cm"/>
<fo:table-column column-width="4.8cm"/>
<fo:table-header>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="left">Amtliches Kennzeichen</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center"></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="left" >Jahr</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-text-black">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">
<xsl:value-of select="//KENNZEICHEN"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-text-red">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">
<fo:inline>Dienstfahrzeug-Kostenblatt</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-text-black">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">
<xsl:value-of select="//JAHR"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-text-none">
<fo:block/>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-text-none">
<fo:block/>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-text-none">
<fo:block/>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table border-style="solid" table-layout="fixed" width="100">
<fo:table-column column-width="0.6cm"/>
<fo:table-column column-width="3.0cm"/>
<fo:table-column column-width="1.8cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.66cm"/>
<fo:table-header>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center"></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a" number-columns-spanned="15">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="left" >allgemeine Angaben</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="right">1</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left" >Eigentümer</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right" ></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">LAND</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Halterdienststelle</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">TMIL</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Nutzung</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right" >(Nah/Fern)</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//NUTZUNG"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="right">2</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left" >Fahrzeugart und -typ</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right" ></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//FAHRZEUGTYP"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Kraftstoffart</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//KRAFTSTOFF"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Fahrzeug-Ident-Nr</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//FAHRGESTELLNR"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="right">3</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left" >Erstzulassung</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right" >(Datum)</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//DAT_ZULASSUNG"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Übernahme</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//DAT_UEBERNAHME"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Aussonderung</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//DAT_AUSSONDERUNG"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="right">4</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left" >Anschaffungskosten</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right" >(EUR)</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//NEUPREIS"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">KFZ-Steuer</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right">(EUR/Jahr)</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//KFZSTEUER"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Kosten GEZ</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right">(EUR/Monat)</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//GEZ"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="right">5</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left" >überwiegend Selbstfahrer?</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//FAHRERTYP_SELBSTFAHRER"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Leasingrate</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right">(EUR/Monat)</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//LEASINGRATE"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Funk</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right">(EUR/Monat)</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//FUNK"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="right">6</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left" >km-Stand Jahresanfang</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//KMSTAND_JA"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">km-Stand Jahresende</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//KMSTAND_JE"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Auslastungsquote (p)</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="//AUSLASTUNGSQUOTE"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<xsl:apply-templates/>
<fo:table border-style="none" table-layout="fixed" width="100">
<fo:table-column column-width="0.6cm"/>
<fo:table-column column-width="3.0cm"/>
<fo:table-column column-width="1.8cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.66cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell">
<fo:block xsl:use-attribute-sets="block-style" text-align="right"/>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell" number-columns-spanned="2">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">Kfz-RL (Anlage 2) (c) 12.2015 TFM</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell" number-columns-spanned="10">
<fo:block xsl:use-attribute-sets="block-style" text-align="center"/>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell" number-columns-spanned="3">
<fo:block xsl:use-attribute-sets="block-style" text-align="right">
<xsl:value-of select="//DATUM"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block id="LastPage"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<!-- Tabellenkopf -->
<xsl:template name="table-head">
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center"></fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="left" >Einsatz</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="right" >Monat</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Jan</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Feb</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Mrz</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Apr</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Mai</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Jun</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Jul</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Aug</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Sep</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Okt</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Nov</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Dez</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-none" text-align="center">Summen</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
<xsl:template match="ROWSET">
<fo:table border-style="solid" table-layout="fixed" width="100">
<fo:table-column column-width="0.6cm"/>
<fo:table-column column-width="3.0cm"/>
<fo:table-column column-width="1.8cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.57cm"/>
<fo:table-column column-width="1.66cm"/>
<fo:table-header>
<xsl:call-template name="table-head"/>
</fo:table-header>
<fo:table-body>
<xsl:apply-templates select="ROW"/>
</fo:table-body>
</fo:table>
</xsl:template>
<xsl:template match="ROW">
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="right">
<xsl:value-of select="DATEN_NO"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style" text-align="left">
<xsl:value-of select="EINSATZ"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style-header-b">
<fo:block xsl:use-attribute-sets="block-style-5" text-align="right">
<xsl:value-of select="EINHEIT"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="JAN"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="FEB"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="MRZ"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="APR"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="MAI"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="JUN"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="JUL"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="AUG"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="SEP"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="OKT"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="NOV"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="cell-style">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="DEZ"/>
</fo:block>
</fo:table-cell>
<!-- <xsl:variable name="r" select="position()"/>
<xsl:if test="$r mod 17 = 0"><xsl:attribute name="page-break-after">always</xsl:attribute></xsl:if>
-->
<fo:table-cell xsl:use-attribute-sets="cell-style-header-a">
<fo:block xsl:use-attribute-sets="block-style-8" text-align="right">
<xsl:value-of select="SUMME"/><!--xx <xsl:value-of select="$r"/><xsl:if test="$r mod 17 = 0">break</xsl:if>-->
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
</xsl:stylesheet>