> A NPE is bad indeed. Can you open a bug in bugzilla and attach some > sample FO that demonstrates the problem?
https://issues.apache.org/bugzilla/show_bug.cgi?id=45295 > Despite of the NPE, markers are not supposed to be forward referencable. > The fo:retrieve-marker is supposed to look on the current page and > previous pages, never subsequent pages. However, it should still be > possible to achieve changing footers using markers, but you will need to > ensure that markers occur more frequently within the document so that a > forward lookup is not required. Not sure what you mean Chris. Below is the sample file that I have attached to the bug report. It seems pretty basic and is working in 0.20.5 but not 0.9x. I would appreciate any suggestions for a workaround as I need to deploy this against 0.94. [start sample] <?xml version="1.0" encoding="UTF-8" ?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master page-height="297mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" master-name="PageMaster"> <fo:region-body margin-top="20mm" margin-left="0mm" margin-right="0mm" margin-bottom="20mm"/> <fo:region-before extent="15mm"/> <fo:region-after extent="15mm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence initial-page-number="1" master-reference="PageMaster"> <fo:static-content flow-name="xsl-region-after"> <fo:retrieve-marker retrieve-class-name="footer" retrieve-position="last-ending-within-page" retrieve-boundary="page-sequence" /> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:marker marker-class-name="footer"> <fo:block> Page <fo:page-number /> of  <fo:page-number-citation ref-id="end-of-doc" /> </fo:block> </fo:marker> </fo:block> <fo:block> Some text. </fo:block> <fo:block break-before="page"> Some text. </fo:block> <fo:block> <fo:marker marker-class-name="footer"> <fo:block> Page <fo:page-number /> of  <fo:page-number-citation ref-id="end-of-doc" /> </fo:block> <fo:block> This footer is different. </fo:block> </fo:marker> </fo:block> <fo:block break-before="page"> Some text. </fo:block> <fo:block id="end-of-doc" /> </fo:flow> </fo:page-sequence> </fo:root> [end sample] Jamie Browning theFrame Programme Phone: +44 (0)20 7015 0981 E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
