You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Roges Grandi <ro...@intra.procergs.com.br> on 2000/10/25 20:28:59 UTC
Working with fo:page-number & fo:page-number-citation as variables
Hello
I'm trying ti transform fo:page-number & fo:page-number-citation to variables so
I can easily mask them.
In order to do it I'm trying this:
<xsl:variable name="this-page">
<fo:page-number/>
</xsl:variable>
<xsl:variable name="last-page">
<fo:page-number-citation ref-id="end-of-document"/>
</xsl:variable>
<xsl:value-of select="format-number($this-page, '000')"/>
<xsl:value-of select="format-number($last-page, '000')"/>
But FOP does not attribute fo:page-number/fo:page-number-citation to
this-page/last-page respectively. When we check the variables values they are
empty because fo:page-number/page-number-citation are not captured.
If anyone have a clue...
Roges
Re: Working with fo:page-number & fo:page-number-citation as
variables
Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
Hi, Roges
The main problem is that the XSLT processor does its thing first; neither of
the FO's will evaluate to anything at that point because no FO formatting
has happened yet.
Arved
At 03:28 PM 10/25/00 -0300, Roges Grandi wrote:
>Hello
>
>I'm trying ti transform fo:page-number & fo:page-number-citation to
variables so
>I can easily mask them.
>
>In order to do it I'm trying this:
>
> <xsl:variable name="this-page">
> <fo:page-number/>
> </xsl:variable>
>
> <xsl:variable name="last-page">
> <fo:page-number-citation ref-id="end-of-document"/>
> </xsl:variable>
>
> <xsl:value-of select="format-number($this-page, '000')"/>
>
> <xsl:value-of select="format-number($last-page, '000')"/>
>
>
>But FOP does not attribute fo:page-number/fo:page-number-citation to
>this-page/last-page respectively. When we check the variables values they are
>empty because fo:page-number/page-number-citation are not captured.
>
>If anyone have a clue...
>
>Roges
>
>
>
>
Senior Developer
e-plicity.com (www.e-plicity.com)
Halifax, Nova Scotia
"B2B Wireless in Canada's Ocean Playground"