【发布时间】:2011-08-24 07:16:35
【问题描述】:
我的 Marklogic XQuery fn:data(<type>hello world</type>) 给了我无效的词法值错误
这是堆栈跟踪:
query evaluated in Documents at file::Docs/ as 1.0-ml (cq v4.1-1-EA)
[1.0-ml] XDMP-LEXVAL: xs:integer("hello world") -- Invalid lexical value "hello world"
Stack trace:
line 2:
1:
2: fn:data(<type>hello world</type>)
xdmp:eval(" fn:data(<type>hello world</type>)", (), <options xmlns="xdmp:eval"><isolation>different-transaction</isolation></options>)
in /cq/eval.xqy line 111:
当我使用fn:data(<p>hello world</p>) 时,它给了我预期的答案(世界你好)。
任何有关此错误的帮助将不胜感激。
谢谢。
【问题讨论】: