我是eXist和xPath的新手。我正在尝试使用小写函数。这是我的java代码。
CompiledExpression compiled = xQueryService.compile("/realestatedata/agents/author/name[lower_case(text())='" + authorName.toLowerCase() + "']");它会给出以下错误。
Caused by: org.exist.xquery.XPathException: exerr:ERROR err:XPST0017 Function lower_case() is not defined in module namespace: http://www.w3.org/2005/xpath-functions [at line 1, column 36] [at line 1, column 36]<module uri="http://www.w3.org/2005/xpath-functions" class="org.exist.xquery.functions.fn.FnModule" />在exist重新启动后,我得到了相同的错误。我还尝试将XQueryService从org.xmldb.api.modules.XQueryService更改为org.xmldb.api.modules.XMLResource
发布于 2014-06-25 14:05:06
函数名称拼写错误
"/realestatedata/agents/author/name[lower-case(text())='"
https://stackoverflow.com/questions/18331424
复制相似问题