Here I am giving an example to print the page numbers dynamically in the RTF (Rich Text Format) template. Step 1: Go to page footer and copy and paste the below script. Page | <?fo:page-number?> of <?fo:page-number-citation:xdofo:lastpage-joinseq?> <fo:page-number> : This is the object, which is used to represent the current page-number. <?fo:page-number-citation:xdofo:lastpage-joinseq?> : This is the syntax, which is used to represent the total number of pages. Step 2: Load the XML and preview the result. Output: That's it. References: fo:page-number Printing Page Number Code in Oracle XMLP RTF Template
by Karkuvelraja Thangamariappan ♠ (@tkarkuvelraja)