xsl-list
[Top] [All Lists]

XSL-FO conditional pagination and content

2004-03-26 13:58:07

From: "Greenbaum, Bill" <Bgreenbaum(_at_)concordefs(_dot_)com>
To: "'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'" 
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: XSL-FO conditional pagination and content
Date: Fri, 26 Mar 2004 11:33:10 -0500


  In XSL-FO, I have a pagination pattern that requires a dynamic first
page,
  a static last page, and optional rest page(s) if the data listed on the
  first page's body area spills over to a second page or even a third page
  or beyond.

  Until now, I'd solved this problem with one simple page-sequence.  Now I
  want to add some summary content at the beginning of the rest page(s)
  only, either part of the region-before area, or part of the body.  I've
  tried to test for the value of <fo:page-number/> in my XSL-T stylesheet,
  something like:
  <xsl:variable name="pgNumber"><fo:page-number/></xsl:variable>
  <xsl:if test="$pgNumber &gt; 1">
     optional content goes here
  </xsl:if>

  However, <fo:page-number/> does not appear to be readable to the
elements
  in the xsl: namespace.
  I'd like to do this while continuing to use the simplest XSLFO, with
just
  one page-sequence. If not, I'll be doing it with a page-sequence-master
  containing conditional-page-master-references for "first", the optional
  "rest", and the static "last".  Your guidance would be appreciated.
        P.S. my xsl version is:
        http://www.mulberrytech.com/xsl/xsl-list/processor-version.xsl:
                Vendor: Microsoft
                Vendor URL: http://www.microsoft.com


<Prev in Thread] Current Thread [Next in Thread>