Hi,

I would like to put specific attributes on odd or even pages, so I began 
by looking for a way to check the context pages but I did'nt find 
anything. 

So I wanted to bind the <fo:page-number /> into a variable in order to 
make some test on it when I want to add specific parameters to my tags.

<xsl:variable name="page_number"><fo:page-number /></xsl:variable>
<xsl:if test="($page_number mod 2)=1">
  <xsl:attribute name="text-align">start</xsl:attribute>
</xsl:if>
<xsl:if test="($page_number mod 2)=0">
  <xsl:attribute name="text-align">end</xsl:attribute>
</xsl:if>

But it looks like being impossible to bind the <fo:page-number /> into a 
variable or param (I tried to write my variable in a block but it looks 
like being setted to "" by the fo:page-number tag). 

Is here a reason for my variable to be null ? And is there a way to detect 
the context where I am currently in while writing in a non-static content 
?

I also tried to make a template with a page_number param but it doesn't 
work either...

Here are some examples of my pdf outputs :

http://www.tatouage.fr/temp/ap_skin_example.pdf
(here I want to align my titles at the start or the end of the block 
depending of the odd or even condition, I am in a non-static context)

http://www.tatouage.fr/temp/cd_skin_example.pdf
(It's the same with this skin but it will be easier for me because every 
objects have statical position on the page = I have one odd and one even 
page for each XML <FICHE> tag, so I'll be able to manage the whole page 
breaking in XSLT)

Sorry for disturbing you developpers with my little problem, but it makes 
me so nervous ... :/

Thanks for your work on this API.

Simon OUALID


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to