【发布时间】:2013-12-18 22:36:56
【问题描述】:
在我的项目中,我使用了 xaln 提供的功能。现在我需要编写另一个函数来修复由 .所以代码如下:
<redirect:write file="file.html">
<xsl:variable name="meta_fix" select="MetaFix:fix(string,string('file.html'))" /> //call the fix function which is an external java function.
但是,我真正想要的是扩展 xalan 重定向功能并制作一个自定义标签,该标签将像处理
<customize:write file="file.html" fixMeta="t" />
//or
<redirect:customize-write file="file.html" fixMeta="t" />
如何扩展 xalan 写入功能,让 xalan 理解我的自定义标签?
【问题讨论】: