[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSL-FO conditional pagination and content

Subject: RE: XSL-FO conditional pagination and content
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Sat, 27 Mar 2004 14:42:15 +0100
xsl fo pagination
> -----Original Message-----
> From: Greenbaum, Bill (by way of B Tommie Usdin)
<snip />

> 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.


Nope. The Formatting Process should be looked at as a step in the process
that's separated from the XSL transform. So, in short: at XSLT stage,
nothing is known about the actual page-layout. The fo:page-number is
calculated during the formatting process, and so it is not available as a
*value* to the XSL processor (only as an empty node in the FO namespace).

Maybe you don't need the XSL processor to have access to this value after
all (?)
You can pick up an fo:page-number from a page further downstream, by placing
an fo:block with an id attribute on the same page. Then you can use
fo:page-number-citation to retrieve the page-number of that page at a
location upstream (like static-content).

OTOH you could try solving this by making use of
conditional-page-master-reference.


Just give a yell if you need more info.


Cheers,

Andreas

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.