我想從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