Hello, 

I need to change behavior of <fo:page-number/> like any modulo division, 
multiplication, additions etc. Originally I planned to write my custom element, 
but I did not found any relevant information how to do that. So the easiest way 
I guessed to write modification of <fo:page-number/>. Could You please point me 
to the Java code of FOP, where is <fo:page-number/> calculated and returned? 

Or better and cleaner and sophisticated approach: Is there any document how to 
write my custom element (based on <fo:page-number/> code)? My custom code 
should looks like <myCustomElement:barCode addThisNumber="some XPath calculated 
from XML"/> and should do something like (this is not any programming language 
code ;-)

int barCode
int pageNumber = <fo:page-number/>

switch pageNumber
case 1 barCode = ....
case N barCode = ...
case 31 barCode = ...

return barCode+addThisNumber

Thank You in advance for Your hints, code examples, etc. Stepan

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

Reply via email to