cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joop van Duin" <javand...@hotmail.com>
Subject Help: Fop exception
Date Mon, 29 Oct 2001 18:29:00 GMT
Hello

I'm using Apache 1.3.22, JServ 1.1.2, Cocoon 1.8.1

I get the following FOPException:

'master-name' must be uniqueacross page-masters and page-sequence-masters

What does that mean?

Thanks
Joop

P.S : This is the xsl file (origin: O'Reilly, Java and XML)

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:fo="http://www.w3.org/1999/XSL/Format">

  <xsl:template match="book">
    <xsl:processing-instruction name="cocoon-format">
      type="text/xslfo"
    </xsl:processing-instruction>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>
      <fo:simple-page-master page-master-name="right" margin-top="75pt" 
margin-bottom="25pt" margin-left="100pt" margin-right="50pt">
        <fo:region-body margin-bottom="50pt"/>
        <fo:region-after extent="25pt"/>
      </fo:simple-page-master>
      <fo:simple-page-master page-master-name="left" margin-top="75pt" 
margin-bottom="25pt" margin-left="50pt" margin-right="100pt">
        <fo:region-body margin-bottom="50pt"/>
        <fo:region-after extent="25pt"/>
      </fo:simple-page-master>
      </fo:layout-master-set>

      <fo:page-sequence>
        <fo:sequence-specification>
          <fo:sequence-specifier-alternating page-master-first="right" 
page-master-odd="right" page-master-even="left"/>
        </fo:sequence-specification>

        <fo:static-content flow-name="xsl-after">
          <fo:block text-align-last="centered" font-size="10pt">
            <fo:page-number/>
          </fo:block>
        </fo:static-content>

        <fo:flow>
          <xsl:apply-templates/>
        </fo:flow>
      </fo:page-sequence>

    </fo:root>
  </xsl:template>

  <xsl:template match="cover/title">
    <fo:block font-size="36pt" text-align-last="centered" 
space-before.optimum="24pt">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="author">
    <fo:block font-size="24pt" text-align-last="centered" 
space-before.optimum="24pt">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="chapter">
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="chapter/title">
    <fo:block font-size="24pt" text-align-last="centered" 
space-before.optimum="24pt">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="paragraph">
    <fo:block font-size="12pt" space-before.optimum="12pt" 
text-align="justified">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="authorComment">
    <fo:block font-size="10pt" font-style="italic" color="blue" 
space-before.optimum="12pt" text-align="justified">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>
</xsl:stylesheet>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message