You cannot. Value of <fo:page-number> and if-statement never exist at the same
time. When if statement is evaluated, <fo:page-number> is just literal result
element in terms of xslt and when <fo:page-number> has value, xsl
transformation is over. Don't forget, xsl is a declarative language, you
cannot control process of transformation and formatting, you can only declare
what you want to get. Try to use <fo:page-sequence-master> instead.
> I would like to know how to get the value of the <fo:page-number/>
> expression myself; I need it to use it in an if-statement to decide
> how many blank pages to insert.
> --- In XSL-FO@y..., "Ciprian Stoica" <ciprian.stoica@m...> wrote:
> > Hi all
> > I have the following line
> > <xsl:variable name="pageNumber"><fo:page-number/></xsl:variable>
> > Surprisingly <xsl:value-of select="$pageNumber"/> returns nothing
> > right before this I have this line:
> > <fo:block><fo:page-number/></fo:block> which properly displays the
> > number.
> > $pageNumber is empty!!
> > Do you know what's wrong here?
> > I need that value in a variable because I must test whether a page
> is the
> > last one or not.
> > Thanks in advance
> > Cipris
> > www.memiq.com
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
Multiconn International Ltd, Israel