This doesn't seem to correspond to your exception, but you should probably move your "fo:flow" before you call your "ccjob template". Otherwise you create a new flow each time you get another "ccjob". I'd try making the following mod and remove the flow from your "ccjob template"
<fo:page-sequence master-name="a4p"> <fo:flow flow-name="xsl-region-body"> <xsl:apply-templates select="ccjob"/> </fo:flow> </fo:page-sequence> JohnPT [EMAIL PROTECTED] APACHE.ORG To: <[EMAIL PROTECTED]> cc: 03/26/02 03:57 AM Subject: Page sequence error Please respond to fop-user When running FOP on my XML document via XSL, I get the following error: [ERROR]: org.apache.fop.apps.FOPException: 'master-reference' for 'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master' which is odd since according to all the documentation I can find, there is no master-reference property for a page-sequence object. The master-name property is equal to the master-name specified when I defined my simple-page-master object. My XSL looks like: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:template match ="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master margin-right="1.5cm" margin-left="1.5cm" margin-bottom="1cm" margin-top="1.5cm" page-width="21cm" page-height="29.7cm" master-name="a4p"> <fo:region-body/> </fo:simple-page-master> <fo:simple-page-master margin-right="1.5cm" margin-left="1.5cm" margin-bottom="1cm" margin-top="1.5cm" page-width="29.7cm" page-height="21cm" master-name="a4l"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-name="a4p"> <fo:flow flow-name="xsl-region-body"> <xsl:apply-templates select="ccjob"/> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <xsl:template match="ccjob"> <fo:flow flow-name="xsl-region-body"> <fo:block font-size="18pt" font-family="sans-serif" line-height="20pt" space-after.optimum="12pt" color="black" text-align="center"> Site Installation and Commissioning Test Report </fo:block> <fo:table space-after.optimum="12pt"> <fo:table-column column-width="2cm"/> <fo:table-column column-width="2.5cm"/> <fo:table-column column-width="3cm"/> <fo:table-column column-width="3.5cm"/> <fo:table-column column-width="3cm"/> <fo:table-column column-width="4cm"/> <fo:table-body font-size="10pt" font-family="sans-serif"> <fo:table-row line-height="12pt"> <fo:table-cell> <fo:block text-align="left"> Site ID: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block text-align="left"> <xsl:value-of select="siteid"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block text-align="left"> Job number: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block text-align="left"> <xsl:value-of select="jobnumber"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block text-align="left"> Site type: </fo:block> </fo:table-cell> <fo:table-cell> <fo:block text-align="left"> <xsl:value-of select="sitetype"/> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:flow> </xsl:template> </xsl:stylesheet>