我想从XML构建映射,其中包含`cts:element-range-query其中一个值。当我在cq中运行它时,会抛出XDMP-QUERYNOVALS。相同的XML在ML5中起作用。是否有任何设置需要改变才能在ML7中工作?带映射XML的XDMP-QUERYNOVALS包含cts:查询XML
let $request-body := <wrapper xmlns="xdmp:http">
<map:map xmlns:map="http://marklogic.com/xdmp/map" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<map:entry key="GLOBAL">
<map:value><cts:and-query xmlns:cts="http://marklogic.com/cts">
<cts:or-query>
<cts:element-range-query operator="=">
<cts:element>abcd</cts:element>
</cts:element-range-query>
</cts:or-query>
</cts:and-query></map:value>
</map:entry>
</map:map></wrapper>
return map:map($request-body/node())
错误消息:
[1.0-ml] XDMP-QUERYNOVALS: map:map(
<map:map xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:map="http://marklogic.com/xdmp/map" xmlns="xdmp:http">
<map:entry key="GLOBAL"><map:value><cts:and-query xmlns:cts="htt...</map:map>)
-- /*:wrapper/map:map/map:entry/map:value/cts:and-query/cts:or-query/cts:element-range-query
感谢, 塞尔瓦
谢谢。它解决了这个问题。 – Selva