RE: [xsl] XSL-FO conditional pagination and content

Subject: RE: [xsl] XSL-FO conditional pagination and content
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Fri, 26 Mar 2004 14:04:53 -0700
<fo:page-number/> will do nothing for you as far as putting its value
into your variable for testing.  Replace it with <xsl:value-of
select="fo:page-number"/> and see where that gets you.

<xsl:variable name="pgNumber"><xsl:value-of
select="fo:page-number"/></xsl:variable>

-----Original Message-----
From: Greenbaum, Bill (by way of B Tommie Usdin)
[mailto:Bgreenbaum@xxxxxxxxxxxxxx] 
Sent: Friday, March 26, 2004 1:58 PM
To: xsl-list
Subject: [xsl] XSL-FO conditional pagination and content


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