Whenever a normal page-number is generated, the number is generated using the PageNumberGenerator.java class from the package org.apache.fop.fo.pagination, which respects the format attribute of the ancestor page-sequence. (see:. XSL-FO 6.6.10). When a pagenumber is generated for a ToC, the pagenumber is always generated using roman numerals as defined in org.apache.fop.fo.flow.PageNumberCitation.java, despite the format attribute of the ancestor page-sequence. (see XSL-FO 6.6.11) It should be quite easy to use the code from the PageNumberGenerator class, at least for people with enough experience in the code structure of FOP.
The problem is fixed in the CVS maintenance branch, page-number-citation uses the formatted page number string now.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed