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 "Robert P. J. Day" <rp...@mindspring.com> on 2003/05/08 21:53:43 UTC
baffled by error message transforming FO to PDF
with a simple docbook file, i can generate the .fo file,
but when i run FOP to get the PDF, i get:
[ERROR] file:/home/rpjday/ert/courses/gen/gen.fo:950:84 Flow 'xsl-region-body' does not map to the region-body in page-master 'blank'
what's interesting is that i don't get this error if i use xsltproc to
go from docbook to FO, but i do get it when i use xalan for that step.
any hints as to what i should be looking for?
rday
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: baffled by error message transforming FO to PDF
Posted by "Robert P. J. Day" <rp...@mindspring.com>.
On Thu, 8 May 2003, J.Pietschmann wrote:
> Robert P. J. Day wrote:
> > with a simple docbook file, i can generate the .fo file,
> > but when i run FOP to get the PDF, i get:
> >
> > [ERROR] file:/home/rpjday/ert/courses/gen/gen.fo:950:84 Flow 'xsl-region-body' does not map to the region-body in page-master 'blank'
> >
> > what's interesting is that i don't get this error if i use xsltproc to
> > go from docbook to FO, but i do get it when i use xalan for that step.
> >
> > any hints as to what i should be looking for?
>
> Look for a page master named "blank" which has a body region with a
> name. DocBook uses different code depending on the XSLT processor.
ok, since i'm still stumbling my way around FO, i want to make sure
i know what's happening here, since it sounds like the problem i just
had.
i just installed a new release of the docbook style sheets to generate
the FO. the very top of the file fo/pagesetup.xsl starts with:
<xsl:template name="setup.pagemasters">
<fo:layout-master-set>
<!-- blank pages -->
<fo:simple-page-master master-name="blank"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="{$page.margin.top}"
margin-bottom="{$page.margin.bottom}"
margin-left="{$page.margin.outer}"
margin-right="{$page.margin.inner}">
<fo:region-body display-align="center"
margin-bottom="{$body.margin.bottom}"
margin-top="{$body.margin.top}">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="region-name">blank-body</xsl:attribute>
</xsl:if>
</fo:region-body>
<fo:region-before region-name="xsl-region-before-blank"
extent="{$region.before.extent}"
display-align="before"/>
<fo:region-after region-name="xsl-region-after-blank"
extent="{$region.after.extent}"
display-align="after"/>
</fo:simple-page-master>
<!-- title pages -->
.... blah blah ... lots of snip ...
as i recall, my previous problem was solved by simply commenting
out the three-line <xsl:if> element above, which referred to the
region-name attribute.
the new release has the same element, so should i comment that
out again?
after that, i obviously have some work trying to figure out
why different processors generate different FO, some of which
can be transformed to PDF, some of which can't.
argh.
rday
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: baffled by error message transforming FO to PDF
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Robert P. J. Day wrote:
> with a simple docbook file, i can generate the .fo file,
> but when i run FOP to get the PDF, i get:
>
> [ERROR] file:/home/rpjday/ert/courses/gen/gen.fo:950:84 Flow 'xsl-region-body' does not map to the region-body in page-master 'blank'
>
> what's interesting is that i don't get this error if i use xsltproc to
> go from docbook to FO, but i do get it when i use xalan for that step.
>
> any hints as to what i should be looking for?
Look for a page master named "blank" which has a
body region with a name.
DocBook uses different code depending on the XSLT processor.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org