HI, I want to use FOP to prepare a XML document for printing (ps/pdf). Is it possible to send parameters to FOP to do conditional formating as exist in xsl processors
XSL:
<xsl:param name="isDuplicate">no</xsl:param>
....
<xsl:if test="$isDuplicate='yes'">
<h2 align="center">Copy</h2>
</xsl:if>
....
From stackoverflow
-
If you're using the fop batch/shell file that comes with the distribution, you can use the
--paramargument to fop, as documented on the Fop page-param name value <value> to use for parameter <name> in xslt stylesheet (repeat '-param name value' for each parameter)eLAN : You're right; I don't know how I missed that... :)
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.