在撒克逊语中调用 exslt 时出错
我收到错误消息:
“找不到名为的匹配的 1 参数函数 {http://exslt.org/common}node-set()"
使用 Saxon 运行 xslt 转换时的 我尝试在 Windows XP 上使用 Saxon PE和
EE,但 EXSLT 应该可以立即使用 Saxon。
I get the error message:
"Cannot find a matching 1-argument function named
{http://exslt.org/common}node-set()"
when running a xslt transformation with the Saxon engine.
I've tried using Saxon PE and EE on Windows XP and it gives the same error. EXSLT should work out of the box with Saxon. Does anyone have a solution on how I may resolve this, please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Saxon PE 和 EE 是 XSLT 2.0 处理器实现,您不需要节点集扩展功能,因为在 XSLT 2.0 中,结果树片段和节点集之间的差异不再存在。因此,您应该能够在处理的样式表中简单地使用例如
$var/foo/bar
而不是exsl:node-set($var)/foo/bar
变量。Saxon PE and EE are XSLT 2.0 processor implementations where you don't need a node-set extension function as in XSLT 2.0 the difference between result tree fragments and node-sets does no longer exists. So you should be able to simply use e.g.
$var/foo/bar
instead ofexsl:node-set($var)/foo/bar
in your stylesheets where you process variables.