title: XSL FO continued / running tables, markers in footer
body: <p>I am using markers and "retrieve-table-marker" in XSL-FO to create footers in a PDF transformation.</p>
  
  <p>I need a solution where a one-column table has a "clean" footer and a multi-column table has a footer with added text ("continued") before each column-break. The added text should only be applied before the page break IF the table breaks between columns.</p>
  
  <p>My current code <em>almost</em> does this. It works well for multi-column tables, but for a one-column table the "continued" text is added even though the table does not break.</p>
  
  <p>The code:</p>
  
  <pre><code>  &lt;fo:table-body&gt;
      &lt;fo:table-row&gt;
        &lt;fo:table-cell&gt;
          &lt;fo:block&gt;
            &lt;fo:marker marker-class-name="footer-continued"&gt;(continued)&lt;/fo:marker&gt;
          &lt;/fo:block&gt;
          &lt;fo:block&gt;
            &lt;xsl:text&gt;Contents&lt;/xsl:text&gt;
          &lt;/fo:block&gt;
          &lt;fo:block&gt;
            &lt;fo:marker marker-class-name="footer-continued"&gt;&lt;/fo:marker&gt;
          &lt;/fo:block&gt;
        &lt;/fo:table-cell&gt;
      &lt;/fo:table-row&gt;
    &lt;/fo:table-body&gt;
  
    &lt;fo:table-footer&gt;
      &lt;fo:table-row&gt;
        &lt;fo:table-cell&gt;
          &lt;fo:block&gt;
            &lt;fo:retrieve-table-marker retrieve-class-name="footer-continued" 
                                      retrieve-position="first-including-carryover"
                                      retrieve-boundary-within-table="table"/&gt;
          &lt;/fo:block&gt;
        &lt;/fo:table-cell&gt;
      &lt;/fo:table-row&gt;
    &lt;/fo:table-footer&gt;
  </code></pre>