J
Johnny
Hi together,
I'm new to XML and have problems with FOP
(http://www.apache.org/dyn/closer.cgi/xml/fop)
When I try to convert my .fo document to .pdf, I get this message:
fo:39:26
master-reference '' for foage-sequence matches no simple-page-master
or page-sequence-master
I have no idea what's wrong. Here's my .fo code (sorry it's a bit
long). After it follows the code of my fop.bat.
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="karte" page-height="12cm"
page-width="19cm" margin-top="1cm" margin-bottom="1.5cm"
margin-left="1cm" margin-right="0cm">
<fo:region-body margin-top="1cm" margin-bottom="1.5cm"
margin-left="1cm" margin-right="4.5cm" column-count="2"
column-gap="0.5cm"/>
<fo:region-end extent="4cm"/>
<fo:region-before extent="1cm"/>
<fo:region-start extent="1cm"/>
<fo:region-after extent="1cm"/>
<!-- fo:region-seite extent="1cm" / -->
</fo:simple-page-master>
</fo:layout-master-set>
<!-- Text-Bereich -->
<foage-sequence master-name="karte" language="de"
hyphenate="true" hyphenation-remain-character-count="3"
hyphenation-push-character-count="3" initial-page-number="3">
<fo:static-content flow-name="xsl-region-end">
<fo:block font-style="italic">
Im Regionsende ist nur statischer Text möglich
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-before">
<fo:block margin-left="1cm">
Kopfzeile
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-start">
<fo:block>
Start
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block margin-left="1cm">
Fusszeile
</fo:block>
</fo:static-content>
<!-- fo:static-content flow-name="xsl-region-page-number">
<fo:block>
Seite <foage-number />
</fo:block>
</fo:static-content -->
<fo:flow flow-name="xsl-region-body">
<fo:block space-before="20pt" font-family="Helvetica"
font-size="20pt" font-weight="bold" text-align="left"
background-color="rgb(255,0,051)" color="rgb(255,255,204)"
break-before="page" margin-right="-9.6cm">
Petras Geburtstag: Petra mit Gatte
</fo:block>
<fo:block margin-right="9cm">
<fo:external-graphic src="file:/C:/Dokumente und
Einstellungen/m/Desktop/XML_XSL_Beispiele/
dscn2358.jpg"/>
</fo:block>
<fo:block font-family="Times" border-width="4pt"
border-style="solid" border-color="rgb(76,255,225)"
margin-right="6.1cm" padding-top="1mm" padding-left="1mm"
text-align="center" break-before="column" space-before="60pt">
11.11.2001
</fo:block>
<fo:list-block margin-left="12pt" space-before="12pt"
space-after="12pt" font-family="Times" font-style="italic">
<fo:list-item>
<fo:list-item-label>
<fo:block>•</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block start-indent="36pt">Petra</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block>•</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block
start-indent="36pt">Stefan</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block font-family="Times">
Ein tolles Fest von Petra & Stefan. Viele alte Freunde
getroffen
und <fo:inline font-variant="small-caps"
text-decoration="underline" color="darkred">
prima<fo:inline vertical-align="super"
font-size="6pt">20</fo:inline>
</fo:inline> gefeiert.
</fo:block>
<fo:list-block margin-left="12pt" space-before="12pt"
space-after="12pt">
<fo:list-item>
<fo:list-item-label>
<fo:block>1.</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block
start-indent="36pt">Geburtstagsfeiern</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block>2.</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block start-indent="36pt">Im
Fecker</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<!-- Hier folgen weitere Datensätze -->
<fo:block-container font-style="italic" width="4cm"
height="5cm" top="0cm" left="14cm" position="absolute">
<fo:block>
Der Text fließt in den Containerbereich. Auf den
nachfolgenden
Seiten wird ein anderer Inhalt angezeigt.
</fo:block>
</fo:block-container>
</fo:flow>
</foage-sequence>
</fo:root>
And here's the code of my fop.bat:
@echo OFF
rem %~dp0 is the expanded pathname of the current script under NT
set LOCAL_FOP_HOME=
if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME=%~dp0
set LIBDIR=%LOCAL_FOP_HOME%lib
set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-cvs-20020806.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6
%7 %8
Can you help me, please?
Thank you!
I'm new to XML and have problems with FOP
(http://www.apache.org/dyn/closer.cgi/xml/fop)
When I try to convert my .fo document to .pdf, I get this message:
fo:39:26
master-reference '' for foage-sequence matches no simple-page-master
or page-sequence-master
I have no idea what's wrong. Here's my .fo code (sorry it's a bit
long). After it follows the code of my fop.bat.
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="karte" page-height="12cm"
page-width="19cm" margin-top="1cm" margin-bottom="1.5cm"
margin-left="1cm" margin-right="0cm">
<fo:region-body margin-top="1cm" margin-bottom="1.5cm"
margin-left="1cm" margin-right="4.5cm" column-count="2"
column-gap="0.5cm"/>
<fo:region-end extent="4cm"/>
<fo:region-before extent="1cm"/>
<fo:region-start extent="1cm"/>
<fo:region-after extent="1cm"/>
<!-- fo:region-seite extent="1cm" / -->
</fo:simple-page-master>
</fo:layout-master-set>
<!-- Text-Bereich -->
<foage-sequence master-name="karte" language="de"
hyphenate="true" hyphenation-remain-character-count="3"
hyphenation-push-character-count="3" initial-page-number="3">
<fo:static-content flow-name="xsl-region-end">
<fo:block font-style="italic">
Im Regionsende ist nur statischer Text möglich
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-before">
<fo:block margin-left="1cm">
Kopfzeile
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-start">
<fo:block>
Start
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block margin-left="1cm">
Fusszeile
</fo:block>
</fo:static-content>
<!-- fo:static-content flow-name="xsl-region-page-number">
<fo:block>
Seite <foage-number />
</fo:block>
</fo:static-content -->
<fo:flow flow-name="xsl-region-body">
<fo:block space-before="20pt" font-family="Helvetica"
font-size="20pt" font-weight="bold" text-align="left"
background-color="rgb(255,0,051)" color="rgb(255,255,204)"
break-before="page" margin-right="-9.6cm">
Petras Geburtstag: Petra mit Gatte
</fo:block>
<fo:block margin-right="9cm">
<fo:external-graphic src="file:/C:/Dokumente und
Einstellungen/m/Desktop/XML_XSL_Beispiele/
dscn2358.jpg"/>
</fo:block>
<fo:block font-family="Times" border-width="4pt"
border-style="solid" border-color="rgb(76,255,225)"
margin-right="6.1cm" padding-top="1mm" padding-left="1mm"
text-align="center" break-before="column" space-before="60pt">
11.11.2001
</fo:block>
<fo:list-block margin-left="12pt" space-before="12pt"
space-after="12pt" font-family="Times" font-style="italic">
<fo:list-item>
<fo:list-item-label>
<fo:block>•</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block start-indent="36pt">Petra</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block>•</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block
start-indent="36pt">Stefan</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block font-family="Times">
Ein tolles Fest von Petra & Stefan. Viele alte Freunde
getroffen
und <fo:inline font-variant="small-caps"
text-decoration="underline" color="darkred">
prima<fo:inline vertical-align="super"
font-size="6pt">20</fo:inline>
</fo:inline> gefeiert.
</fo:block>
<fo:list-block margin-left="12pt" space-before="12pt"
space-after="12pt">
<fo:list-item>
<fo:list-item-label>
<fo:block>1.</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block
start-indent="36pt">Geburtstagsfeiern</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block>2.</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block start-indent="36pt">Im
Fecker</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<!-- Hier folgen weitere Datensätze -->
<fo:block-container font-style="italic" width="4cm"
height="5cm" top="0cm" left="14cm" position="absolute">
<fo:block>
Der Text fließt in den Containerbereich. Auf den
nachfolgenden
Seiten wird ein anderer Inhalt angezeigt.
</fo:block>
</fo:block-container>
</fo:flow>
</foage-sequence>
</fo:root>
And here's the code of my fop.bat:
@echo OFF
rem %~dp0 is the expanded pathname of the current script under NT
set LOCAL_FOP_HOME=
if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME=%~dp0
set LIBDIR=%LOCAL_FOP_HOME%lib
set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-cvs-20020806.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6
%7 %8
Can you help me, please?
Thank you!