Wo liegt der Fehler?

9 10 2007

In diesem Beispiel bestand die anspruchsvolle Aufgabe darin einen vorgefertigtes XSL-FO mittels XSL zu dynamisieren.
Der hilflose Programmierer wunderte sich warum XSL Prozessor hier den Dienst verweigerte.

Das ist kein Joke!

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:java="http://xml.apache.org/xslt/java"
xmlns:konstante="xxx.util.xslextelem.Konstanten"
exclude-result-prefixes="java konstante" extension-element-prefixes="konstante">

<xsl:output method="xml" version="1.0" encoding="ISO-8859-1" omit-xml-declaration="yes" indent="yes" media-type="text/xml" />
<xsl:include href="../common_templates.xsl"/>
<xsl:include href="../common_templates_pdf.xsl"/>

<xsl:template match="/ANFRAGE">
<xsl:variable name="sysUtil" select="java:xxx.util.SystemUtil.new()"/>
<xsl:variable name="mandant" select="/ANFRAGE/ALLG_VERWALTUNG/MANDANTID"/>


<?xml version="1.0" encoding="ISO-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xml.apache.org/fop/extensions" xmlns:java="http://xml.apache.org/xslt/java">
<fo:layout-master-set>
<fo:simple-page-master master-name="basic" page-height="297mm" page-width="210mm" margin-top=".5cm" margin-bottom="0cm" margin-left="1.5cm" margin-right="1.5cm">
<fo:region-before extent="242mm"/>
<fo:region-body margin-top="2cm" margin-bottom="3cm" border="1pt" column-count="2" column-gap="1cm" />
<fo:region-after extent="2cm" border="1pt"/>
</fo:simple-page-master>
</fo:layout-master-set>
...





Aktionen

Information

Kommentieren