You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by MARTIN Franck <fr...@c-s.fr> on 2002/11/25 08:49:13 UTC

xslt and fo process

Hello,

Is there any way to transform the value returned by the instruction <fo:page-number/> before printing it? Let's say i would like to double it and then print the result, could i use an xsl:variable or not?

Fop is able to process a fo file directly but it is also able to process a xsl file and a xml file. In the cas i give fop 2 files to process (xml+xsl), will it always give the same result as giving it the fo file (obtained from the xml and xsl)??

Franck

Re: xslt and fo process

Posted by Oleg Tkachenko <ol...@multiconn.com>.
MARTIN Franck wrote:

> Is there any way to transform the value returned by the instruction 
> <fo:page-number/> before printing it? Let's say i would like to double 
> it and then print the result, could i use an xsl:variable or not?
You cannot. All you can do with a page number is to format it to some kind of 
degree using java-like number formatting, see 
http://www.w3.org/TR/xsl/slice6.html#fo_page-sequence, properties:
     * [7.24.1 "format"]
     * [7.24.4 "letter-value"]
     * [7.24.2 "grouping-separator"]
     * [7.24.3 "grouping-size"]

> Fop is able to process a fo file directly but it is also able to process 
> a xsl file and a xml file. In the cas i give fop 2 files to process 
> (xml+xsl), will it always give the same result as giving it the fo file 
> (obtained from the xml and xsl)??
Sure.

-- 
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org