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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to