You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Curtis A. Weyant" <dy...@angelfire.com> on 2002/10/25 21:27:53 UTC
[ERROR] null
Hello,
I'm having a problem with my FO output. I'm guessing I'm forgetting
something. Basically, I have an xsl stylesheet that parses a TEI
LITE document, but when I try to use FOP, I get:
[INFO] FOP 0.20.4
[INFO] building formatting object tree
[INFO] [1]
[ERROR] null
My .fo file is ~530k, but I've attached the relevant portion (i.e.,
just the / template) of my xsl sheet. Hopefully it will be enough
for someone to catch what I'm missing.
------------------------------------------------------------
<!--
==============================================================
Root Template
==============================================================
-->
<xsl:template match="/">
<fo:root>
<!--
==============================================================
Page Masters
==============================================================
Below are defined the layout master set and simple page masters.
==============================================================
-->
<fo:layout-master-set>
<fo:simple-page-master master-name="cover"
page-height="8.5in"
page-width="5in"
margin-top="0.25in"
margin-bottom="0.25in"
margin-left="0.5in"
margin-right="0.25in">
<fo:region-body />
</fo:simple-page-master>
<fo:simple-page-master master-name="rightPage"
page-height="8.5in"
page-width="5in"
margin-top="0.25in"
margin-bottom="0.25in"
margin-left="0.5in"
margin-right="0.25in">
<fo:region-before extent=".25in" />
<fo:region-after extent=".25in" />
<fo:region-body
margin-top="0.3125in"
margin-bottom="0.3125in" />
</fo:simple-page-master>
<fo:simple-page-master master-name="leftPage"
page-height="8in"
page-width="4.75in"
margin-top="0.25in"
margin-bottom="0.25in"
margin-left="0.25in"
margin-right="0.5in">
<fo:region-before extent=".25in" />
<fo:region-after extent=".25in" />
<fo:region-body
margin-top="0.3125in"
margin-bottom="0.3125in" />
</fo:simple-page-master>
<fo:page-sequence-master master-name="contents">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
master-name="leftPage"
odd-or-even="even"/>
<fo:conditional-page-master-reference
master-name="rightPage"
odd-or-even="odd"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<!-- end: layout-master-set -->
<!--
==============================================================
Page Sequences
==============================================================
Below are defined the page sequence master and page sequences
==============================================================
-->
<fo:page-sequence master-reference="cover">
<fo:flow flow-name="xsl-region-body">
<fo:block text-align="center">
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/titleStmt/title" />
</fo:block>
<fo:block text-align="center">
<xsl:text>by</xsl:text>
</fo:block>
<fo:block text-align="center">
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/titleStmt/author" />
</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="contents" initial-page-number="1">
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="end"
font-size="10pt"
font-family="sans-serif"
line-height="14pt" >
p. <fo:page-number/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="start" font-size="10pt"
font-family="sans-serif"
line-height="10pt" >
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/titleStmt/title" />
<xsl:text> by </xsl:text>
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/titleStmt/author" />
</fo:block>
</fo:static-content>
<xsl:apply-templates select="/TEI.2/text" />
</fo:page-sequence>
<!-- end: page-sequence's -->
</fo:root>
</xsl:template>
____________________________________________________________
Get 25MB of email storage with Lycos Mail Plus!
Sign up today -- http://www.mail.lycos.com/brandPage.shtml?pageId=plus
RE: [ERROR] null
Posted by Srinivas Kusunam <sr...@ensoftek.com>.
Look at the release notes. You should use master-reference instead of
master-name in some of the locations down ex: at fo:
conditional-page-master-reference and in other places.
-----Original Message-----
From: Curtis A. Weyant [mailto:dylan38@angelfire.com]
Sent: Friday, October 25, 2002 12:28 PM
To: fop-user@xml.apache.org
Subject: [ERROR] null
Hello,
I'm having a problem with my FO output. I'm guessing I'm forgetting
something. Basically, I have an xsl stylesheet that parses a TEI
LITE document, but when I try to use FOP, I get:
[INFO] FOP 0.20.4
[INFO] building formatting object tree
[INFO] [1]
[ERROR] null
My .fo file is ~530k, but I've attached the relevant portion (i.e.,
just the / template) of my xsl sheet. Hopefully it will be enough
for someone to catch what I'm missing.
------------------------------------------------------------
<!--
==============================================================
Root Template
==============================================================
-->
<xsl:template match="/">
<fo:root>
<!--
==============================================================
Page Masters
==============================================================
Below are defined the layout master set and simple page masters.
==============================================================
-->
<fo:layout-master-set>
<fo:simple-page-master master-name="cover"
page-height="8.5in"
page-width="5in"
margin-top="0.25in"
margin-bottom="0.25in"
margin-left="0.5in"
margin-right="0.25in">
<fo:region-body />
</fo:simple-page-master>
<fo:simple-page-master master-name="rightPage"
page-height="8.5in"
page-width="5in"
margin-top="0.25in"
margin-bottom="0.25in"
margin-left="0.5in"
margin-right="0.25in">
<fo:region-before extent=".25in" />
<fo:region-after extent=".25in" />
<fo:region-body
margin-top="0.3125in"
margin-bottom="0.3125in" />
</fo:simple-page-master>
<fo:simple-page-master master-name="leftPage"
page-height="8in"
page-width="4.75in"
margin-top="0.25in"
margin-bottom="0.25in"
margin-left="0.25in"
margin-right="0.5in">
<fo:region-before extent=".25in" />
<fo:region-after extent=".25in" />
<fo:region-body
margin-top="0.3125in"
margin-bottom="0.3125in" />
</fo:simple-page-master>
<fo:page-sequence-master master-name="contents">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
master-name="leftPage"
odd-or-even="even"/>
<fo:conditional-page-master-reference
master-name="rightPage"
odd-or-even="odd"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<!-- end: layout-master-set -->
<!--
==============================================================
Page Sequences
==============================================================
Below are defined the page sequence master and page sequences
==============================================================
-->
<fo:page-sequence master-reference="cover">
<fo:flow flow-name="xsl-region-body">
<fo:block text-align="center">
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/titleStmt/title"
/>
</fo:block>
<fo:block text-align="center">
<xsl:text>by</xsl:text>
</fo:block>
<fo:block text-align="center">
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/titleStmt/author"
/>
</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="contents" initial-page-number="1">
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="end"
font-size="10pt"
font-family="sans-serif"
line-height="14pt" >
p. <fo:page-number/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="start" font-size="10pt"
font-family="sans-serif"
line-height="10pt" >
<xsl:value-of
select="/TEI.2/teiHeader/fileDesc/titleStmt/title" />
<xsl:text> by </xsl:text>
<xsl:value-of
select="/TEI.2/teiHeader/fileDesc/titleStmt/author" />
</fo:block>
</fo:static-content>
<xsl:apply-templates select="/TEI.2/text" />
</fo:page-sequence>
<!-- end: page-sequence's -->
</fo:root>
</xsl:template>
____________________________________________________________
Get 25MB of email storage with Lycos Mail Plus!
Sign up today -- http://www.mail.lycos.com/brandPage.shtml?pageId=plus