Loading ...
Sorry, an error occurred while loading the content.

Re: [XSL-FO] page breaks

Expand Messages
  • G. Ken Holman
    ... At the time you generate the XSL-FO, can you just not bother adding the block for the last record? You might do something like this in XSLT:
    Message 1 of 2 , Apr 30, 2003
    • 0 Attachment
      At 2003-04-30 13:41 +0000, hoosier4me wrote:
      >I have a result set that will produce one pdf page per record. I
      >want a page break after each record even if the page isn't full. I
      >put in the following:
      >
      ><fo:block break-after="page"></fo:block>
      >
      >at the end of the page. This causes a blank page at the end of the
      >PDF. Can I suppress this last page? Thanks!

      At the time you generate the XSL-FO, can you just not bother adding the
      block for the last record? You might do something like this in XSLT:

      <xsl:for-each select="record">
      ...
      <xsl:if test="position()!=last()">
      <fo:block break-after="page"/>
      </xsl:if>
      </xsl:for-each>

      I hope this helps.

      ...................... Ken


      --
      Upcoming hands-on courses: Europe (XSLT/XPath): May 5, 2003
      - Europe (XSL-FO): May 16, 2003
      - (XSLT/XPath and/or XSL-FO) North America: June 16-20, 2003

      G. Ken Holman mailto:gkholman@...
      Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
      Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
      ISBN 0-13-065196-6 Definitive XSLT and XPath
      ISBN 0-13-140374-5 Definitive XSL-FO
      ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
      ISBN 1-894049-10-1 Practical Formatting Using XSL-FO
      Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
    Your message has been successfully submitted and would be delivered to recipients shortly.