Table headers missing on all pages except last.

I am using the following to create a table and it spans multiple pages
and I have a header set on it but it only shows up on the last page of
the table.  Any pages the table spans before the last page do not have
headers.  Has anyone seen this before?

 

<fo:table table-layout="fixed" width="100%" text-align="center"
space-after="10px">

  <!-- Loop through attributes and define column for each -->

  <xsl:for-each select="descendant::Feature[1]/Attribute">

    <xsl:call-template name="column_for_attribute">

      <xsl:with-param name="catName" select="$catName" />

      <xsl:with-param name="attrName" select="@name" />

    </xsl:call-template>

  </xsl:for-each>

  <!-- Loop through and add header for each column -->

  <fo:table-header>

    <fo:table-row>

      <xsl:for-each select="descendant::Feature[1]/Attribute">

        <fo:table-cell>

          <fo:block font-size="6.5pt" text-decoration="underline">

              <xsl:call-template name="display_attribute_name">

                <xsl:with-param name="catName" select="$catName" />

                <xsl:with-param name="attrName" select="@name" />

              </xsl:call-template>

          </fo:block>

        </fo:table-cell>

      </xsl:for-each>

    </fo:table-row>

  </fo:table-header>

  <!-- Loop through attributes and add table cell for each -->

  <fo:table-body>

    <xsl:for-each select="descendant::Feature">

      <fo:table-row>

        <xsl:for-each select="Attribute">

          <fo:table-cell>

            <fo:block font-size="6.5pt">

              <xsl:call-template name="display_attribute_value">

                <xsl:with-param name="catName" select="$catName" />

                <xsl:with-param name="attrName" select="@name" />

                <xsl:with-param name="attrValue" select="@value" />

              </xsl:call-template>

            </fo:block>

          </fo:table-cell>

        </xsl:for-each>

      </fo:table-row>

    </xsl:for-each>

  </fo:table-body>

</fo:table>

 

My layout and page sequences are setup like this(I have cut out some of
the template calls and data.):

 

<fo:layout-master-set>

  <fo:simple-page-master master-name="simple" page-height="27.8cm"
page-width="21.5cm" margin-left="2.5cm"

    margin-right="2.5cm" margin-top="1cm" margin-bottom="1cm">

    <fo:region-body margin-top="3cm" margin-bottom="3cm" />

    <fo:region-before extent="2.5cm" region-name="header" />

    <fo:region-after extent="2.5cm" region-name="footer" />

  </fo:simple-page-master>

</fo:layout-master-set>

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

  <fo:static-content flow-name="header">

    <fo:block-container position="fixed" left="2.5cm" top="1.6cm">

      Some Header

    </fo:block-container>

  </fo:static-content>

  <!--Footnote code is here.  I have it "absoluted" at a position on the
page -->

  <fo:static-content flow-name="footer">

    <fo:block-container position="fixed" left="2.5cm" top="24.5cm">

      Some footer

    </fo:block-container>

  </fo:static-content>

  <!-- Now we've defined the header and the footer, the rest is just
defining the content of the pages -->

  <fo:flow flow-name="xsl-region-body">

    calls some funtions and places the tables in the body.

  </fo:flow>

</fo:page-sequence>

Received on Thursday, 16 August 2007 03:15:09 UTC