TAILLEZ Yannick wrote:
Hi everyone,

I 'm trying to do something like this :
------ Begin ------
<xsl:variable name="first_cumulative_total">
        <fo:retrieve-marker retrieve-class-name="cumulative_total"
retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
</xsl:variable>
<xsl:variable name="last_cumulative_total">
        <fo:retrieve-marker retrieve-class-name="cumulative_total"
retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
</xsl:variable>
<xsl:value-of select="$last_cumulative_total - $first_cumulative_total"/>
------ end ------

But the two variables are empty and retrieve-marker return a correct value.
Does it because fop parse the xslt and after the fo ?

No. The transformation is run first, generating a FO document. You can do this explicitely: http://xml.apache.org/fop/running.html#check-input Neither of your variables will have a non-whitespace string value at transformation time.

There is a not too complex solution for this problem ?

No.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to