经过一番研究,我还没有找到解决方案,但是很多人都遇到了这个问题:
我正在尝试在 Java 应用程序中使用 XQuery 转换
net.sf.saxon.s9api
但是,在尝试编译 XQueryExecutable exec = compiler.compile(...));
我的 XQuery 时出现此错误:
Error on line 13 column 3 of AivPumaRequest.xquery:
XPST0081 XQuery static error near #... fn-bea:inlinedXML(fn:concat#:
Prefix fn-bea has not been declared
Error on line 44 column 102 of AivPumaRequest.xquery:
XPST0081 XQuery static error near #... div xdt:dayTimeDuration('P1D'#:
Prefix xdt has not been declared
Error on line 199 column 3 of AivPumaRequest.xquery:
XPST0081 XQuery static error near #... fn-bea:inlinedXML(fn:concat#:
Prefix fn-bea has not been declared
Error on line 282 column 4 of AivPumaRequest.xquery:
XPST0081 XQuery static error near #... {fn-bea:inlinedXML(fn:concat#:
Prefix fn-bea has not been declared
net.sf.saxon.s9api.SaxonApiException: Prefix fn-bea has not been declared
有没有办法静态包含这个前缀或者我错过了什么,所以我的 XQuery 引擎 (SAXON) 找到了前缀?