Shaun Shoaee wrote:
<snip/>
Now a little issue is to count the page and
<fo:block id="last-page"/> will not work before page
sequence ends. Any idea how to approach?
This should be easy enough to do. Just put a test in the XSLT so that
the <fo:block id="last-page"/> is only inserted if we are dealing with
the last item in the xsl:for-each loop. Code example - given below. But
please note, I havent tested it so it may need tweaking, its just to
give you the idea.
<snip/>
XSL File:
<fo:root>
<fo:layout-master-set>
....
</fo:layout-master-set>
<xsl:for-each select="caseReport">
<fo:page-sequence master-reference="simple" initial-
page-number="1">
<fo:static-content
flow-name="xsl-region-before">
.....
</fo:static-content>
<fo:static-content
flow-name="xsl-region-after">
.....
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
......
<xsl:if test="position()=last()">
<fo:block id="last-page"/> --for page counting
</xsl:if>
</fo:flow>
</fo:page-sequence>
</xsl:for-each>
</fo:root>
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]