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/30 12:56:58 UTC

Re: Working with fo:page-number & fo:page-number-citation as variables

Hi Arved

Thanks for your reply, what we need here is to format (mask) page-numbers , what
may be a common need for many users. Out of your knowledge & experience in
XSLT/FOP do you guess it would be too hard or even impossible to program it?

Roges





Arved Sandstrom <Ar...@chebucto.ns.ca> on 29/10/2000 12:49:17

Please respond to fop-dev@xml.apache.org

To:   fop-dev@xml.apache.org
cc:    (bcc: Roges Grandi/POA/PROCERGS)
Subject:  Re: Working with fo:page-number & fo:page-number-citation as
      variables




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"









Re: Working with fo:page-number & fo:page-number-citation as variables

Posted by Ar...@chebucto.ns.ca.
I haven't messed about with number formatting in FOP, just in XSLT, but what 
you're looking to do would be accomplished with the "format" attribute on the 
fo:page-sequence; this is described in the XSLT spec.

Arved

Quoting Roges Grandi <ro...@intra.procergs.com.br>:

> Hi Arved
> 
> Thanks for your reply, what we need here is to format (mask) page-numbers ,
> what
> may be a common need for many users. Out of your knowledge & experience in
> XSLT/FOP do you guess it would be too hard or even impossible to program
> it?
> 
> Roges
> 
> 
> 
> 
> 
> Arved Sandstrom <Ar...@chebucto.ns.ca> on 29/10/2000 12:49:17
> 
> Please respond to fop-dev@xml.apache.org
> 
> To:   fop-dev@xml.apache.org
> cc:    (bcc: Roges Grandi/POA/PROCERGS)
> Subject:  Re: Working with fo:page-number & fo:page-number-citation as
>       variables
> 
> 
> 
> 
> 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"
> 
> 
> 
> 
> 
> 
> 
> 


---------------------------------------------------------------
 This mail was sent through the Nova Scotia Provincial Server, 
 with technical resources provided by Chebucto Community Net.
 http://nsaccess.ns.ca/mail/         http://www.chebucto.ns.ca/