There is no support for page-number-citation and page-number-citation-last in FOEventHandler. This is because of the following relatively simple omissions: (1) org.apache.fop.fo.FOEventHandler : o needs empty method startPageNumberCitation(PageNumberCitation) o needs empty method endPageNumberCitation(PageNumberCitation) o needs empty method startPageNumberCitationLast(PageNumberCitationLast) o needs empty method endPageNumberCitationLast(PageNumberCitationLast) (2) org.apache.fop.fo.flow.PageNumberCitation: o method startOfNode() needs to call getFOEventHandler().startPageNumberCitation(this); o method endOfNode() needs to call getFOEventHandler().endPageNumberCitation(this); (3) org.apache.fop.fo.flow.PageNumberCitationLast: o method startOfNode() needs to call getFOEventHandler().startPageNumberCitationLast(this); o method endOfNode() needs to call getFOEventHandler().endPageNumberCitationLast(this); The fixes are trivial (simply add about 15 missing lines as directed above).
Created attachment 20966 [details] Adds support for page-number-citation etc. to FOEventHandler... This patch should completely resolve the bug -- it is relatively straightforward.
Patch applied to FOP Trunk, thanks: http://svn.apache.org/viewvc?rev=596097&view=rev However, I had to modify the patch since it had a bug. See the commit message for details.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed