使用参数处理FOP [英] Processing FOP with parameters

查看:108
本文介绍了使用参数处理FOP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用FOP准备要打印的XML文档(ps/pdf). 是否可以将参数发送到FOP以执行xsl处理器中存在的条件格式

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>
....

推荐答案

如果您使用的是发行版随附的fop批处理/shell文件,则可以对fop使用--param参数,如d 已在"Fop"页面上显示

If you're using the fop batch/shell file that comes with the distribution, you can use the --param argument 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)

这篇关于使用参数处理FOP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆