473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Please help! Problems with XML and FOP

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 fo:page-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 -->
<fo:page-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 <fo:page-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>&#x2022;</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>&#x2022;</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 &amp; 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>
</fo:page-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%\xercesImp l-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! :-)
Jul 20 '05 #1
1 1952
In article <a7*************************@posting.google.com> ,
Johnny <jo*****@web.de> wrote:

% When I try to convert my .fo document to .pdf, I get this message:
% fo:39:26
% master-reference '' for fo:page-sequence matches no simple-page-master
% or page-sequence-master

Meaning that if you want to use this

% <fo:simple-page-master master-name="karte" page-height="12cm"

your page-sequence

% <fo:page-sequence master-name="karte" language="de"

should be like this

% <fo:page-sequence master-reference="karte" language="de"

--

Patrick TJ McPhee
East York Canada
pt**@interlog.com
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: duikboot | last post by:
Hi all, I'm trying to export a view tables from a Oracle database to a Mysql database. I create insert statements (they look alright), but it all goes wrong when I try to execute them in Mysql,...
2
by: m3ckon | last post by:
Hi there, had to rush some sql and am now going back to it due to a slow db performance. I have a db for sales leads and have created 3 views based on the data I need to produce. However one...
0
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
13
by: sd00 | last post by:
Hi all, can someone give me some coding help with a problem that *should* be really simple, yet I'm struggling with. I need the difference between 2 times (Target / Actual) However, these times...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
0
by: 2Barter.net | last post by:
newsmail@reuters.uk.ed10.net Fwd: Money for New Orleans, AL & GA Inbox Reply Reply to all Forward Print Add 2Barter.net to Contacts list Delete this message Report phishing Show original
6
by: jenipriya | last post by:
Hi all... its very urgent.. please........i m a beginner in oracle.... Anyone please help me wit dese codes i hv tried... and correct the errors... The table structures i hav Employee (EmpID,...
5
by: tabani | last post by:
I wrote the program and its not giving me correct answer can any one help me with that please and specify my mistake please it will be highly appreciable... The error arrives from option 'a' it asks...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.