DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40248>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40248 Summary: HOW TO USE a PAGE NUMBER in a VARIABLE ??? Product: XmlCommons Version: 1.x Platform: Other OS/Version: Windows XP Status: NEW Severity: blocker Priority: P1 Component: XmlStylebook AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Hello, i can't find a solution for this problem : we want to use page number in a variable to do for example : //TEXT ALIGN=RIGHT <xsl:if test="$k mod 2=0"> <fo:table-cell> <fo:block text-align="right" margin-left="15mm" font-size="10pt" color="blue"> Text at the right. </fo:block> </fo:table-cell> </xsl:if> //TEXT ALIGN =LEFT <xsl:if test="$k mod 2=0"> <fo:table-cell> <fo:block text-align="left" margin-left="15mm" font-size="10pt" color="blue"> Text at the left. </fo:block> </fo:table-cell> </xsl:if> So i have tried <xsl:variable name="k"><fo:page-number-citation ref- id="generate-id(.)"/></xsl:variable> and <xsl:variable name="k"><fo:page-number/></xsl:variable> and <xsl:param name="k">....</xsl:param> We don't know how many page are in our PDF, it's generated dynamictly. I think that it's not necessary to use page number, i can use a variable k which contain '1' then k+1 so '2', with an incrementation (+1) each new PDF's page. But i can't find the solution, can you help me please ? Where can i put your solution ? in which part of the code? Thanks for your time, Brice -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
