开发者

Error "System function unparsed-text#1 is not available with this host language"

开发者 https://www.devze.com 2023-01-29 03:59 出处:网络
I\'m using Saxon to execute the following xquery; fn:unparsed-text(\"text.txt\") But I\'m getting the following error me开发者_运维技巧ssage;

I'm using Saxon to execute the following xquery;

fn:unparsed-text("text.txt")

But I'm getting the following error me开发者_运维技巧ssage;

javax.xml.xquery.XQException:
System function unparsed-text#1 is not available with this host language

What does that error message mean?


The unparsed-text() function is an XSLT 2.0 - only function. It isn't an XPath 2.0 function.

Hopefully, this may change in XPath 3.0.

Because you are using Saxon, you may try to use the saxon extension function saxon:transform() and in the transformation invoke unparsed-text().

0

精彩评论

暂无评论...
验证码 换一张
取 消