I got it. I changed the master-name attribute to master-reference inside the
fo:conditional-page-master-reference tags and it renders properly.

-----Original Message-----
From: Kilmer, Erich [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 3:57 PM
To: '[EMAIL PROTECTED]'
Subject: Help with [ERROR]: null 


Hello, I am trying to get this style sheet to render using FOP but the error
it is throwing is fairly vague. Can anyone advise  me how I can debug this?
I am referencing an XML file but not actually accessing any values from it
so its not from that.
I am using FOP 0.20.3.
Thanks,
Erich

Fop output:
[INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: null
...post processing finished

Style Sheet:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:TST="TST"
xmlns:java="http://xml.apache.org/xslt/java"; exclude-result-prefixes="java">
        <xsl:output indent="no"/>
        <xsl:template match="text()"/>
        <xsl:template match="EROUTE">
                <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
                        <fo:layout-master-set>

                                <fo:simple-page-master
master-name="page-first" page-height="11in" page-width="8.5in"
margin-top=".5in" margin-bottom=".5in" margin-left=".5in"
margin-right=".5in">
                                        <fo:region-body margin-top="4in"
region-name="content"/>
                                        <fo:region-before extent="3in"
region-name="header-first"/>
                                        <fo:region-after extent="4in"
region-name="footer-first"/>
                                </fo:simple-page-master>

                                <fo:simple-page-master
master-name="page-rest" page-height="11in" page-width="8.5in"
margin-top=".5in" margin-bottom=".5in" margin-left=".5in"
margin-right=".5in">
                                        <fo:region-body margin-top="1in"
region-name="content"/>
                                        <fo:region-before extent="1in"
region-name="header-rest"/>
                                        <fo:region-after extent="1.5in"
region-name="footer-rest"/>
                                </fo:simple-page-master>

            <fo:page-sequence-master master-name="control-page">
               <fo:repeatable-page-master-alternatives>
                  <fo:conditional-page-master-reference
page-position="first" master-name="page-first"/>
                  <fo:conditional-page-master-reference page-position="rest"
master-name="page-rest"/>
                  <fo:conditional-page-master-reference
master-name="page-rest"/>
               </fo:repeatable-page-master-alternatives>
            </fo:page-sequence-master>

                        </fo:layout-master-set>

         <fo:page-sequence master-reference="control-page">

            <fo:static-content flow-name="header-first">
                                        <fo:block text-align-last="center"
font-weight="bold" font-size="10pt"><xsl:text>Header
First</xsl:text></fo:block>
            </fo:static-content>

            <fo:static-content flow-name="header-rest">
                                        <fo:block text-align-last="center"
font-weight="bold" font-size="10pt"><xsl:text>Header
Rest</xsl:text></fo:block>
            </fo:static-content>

            <fo:static-content flow-name="footer-first">
                                        <fo:block text-align-last="center"
font-weight="bold" font-size="10pt"><xsl:text>Footer
First</xsl:text></fo:block>
            </fo:static-content>

            <fo:static-content flow-name="footer-rest">
                                        <fo:block text-align-last="center"
font-weight="bold" font-size="10pt"><xsl:text>Footer
Rest</xsl:text></fo:block>
            </fo:static-content>

            <fo:flow flow-name="content">
               <xsl:text>Content goes here!</xsl:text>
            </fo:flow>


         </fo:page-sequence>

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

Reply via email to