[xsl] XSL-FO conditional pagination and content

Subject: [xsl] XSL-FO conditional pagination and content
From: "Greenbaum, Bill" <Bgreenbaum@xxxxxxxxxxxxxx> (by way of B Tommie Usdin)
Date: Fri, 26 Mar 2004 15:58:07 -0500
From: "Greenbaum, Bill" <Bgreenbaum@xxxxxxxxxxxxxx>
To: "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
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

Current Thread