在 Saxon 中调用 exslt 时出错 [英] error when calling exslt in Saxon

查看:58
本文介绍了在 Saxon 中调用 exslt 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误消息:

"找不到匹配的 1-argument 函数,名为{http://exslt.org/common}node-set()"

"Cannot find a matching 1-argument function named {http://exslt.org/common}node-set()"

使用 Saxon 引擎运行 xslt 转换时.

when running a xslt transformation with the Saxon engine.

我曾尝试在 Windows XP 上使用 Saxon PE 和 EE,但它给出了相同的错误.EXSLT 应该与 Saxon 一起开箱即用.有没有人有关于我如何解决这个问题的解决方案?

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?

推荐答案

Saxon PE 和 EE 是 XSLT 2.0 处理器实现,其中您不需要像 XSLT 2.0 中那样的节点集扩展功能结果树片段和节点之间的区别-sets 不再存在.所以你应该能够简单地使用例如$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 of exsl:node-set($var)/foo/bar in your stylesheets where you process variables.

这篇关于在 Saxon 中调用 exslt 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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