Re: maker and retrieve-marker question
I am having a problem in using the marker and retrieve-marker to calculate page subtotals.
... > then, in the same static block, i want to show the > result of the > subtraction of those two variables from each other,...
You are mixing transformation and formatting. These are two different steps.
<xsl:variable name="previous_cumulative_total"> <fo:retrieve-marker retrieve-class-name="previous_cumulative_total_marker" retrieve-boundary="page" retrieve-position="first-starting-within-page"/> </xsl:variable>
Now, if i do <xsl:copy-of select"$previous_cumulative_total"/> , it
However, page breaking and marker retrieval is done by the FO formatter, *after* the whole XSL transformation run. There is no way to get the retrieved markers during the transformation stage.
and how can i get the result of the subtraction of the
No way. A FO formatter can't do such calculations.
is there another way of doing this?
Tricky. You can try to emulate page breaking at the XSLT stage, if your record rows are all of the same height, you precalculate the number of rows per page by hand and put this number in a table, followed by a forced page break.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format