I've tried to simplify this issue I'm having as much as possible.
Here's my test document:
<data xmlns="http://x.y.z">
<duration>PT15M</duration>
</data>
I have created an element range index:
Type = dayTimeDuration
Namespace URI = http://x.y.z
Localname = "duration"
And I'd like to be able to cts:search() for various durations.
But if I try to run the following
xquery version "1.0-ml";
declare namespace foo = "http://x.y.z";
cts:search(
/foo:data,
cts:element-range-query(xs:QName("foo:duration"), ">=",
xs:duration("PT10M"))
)
MarkLogic (6.0-1.1) gives me
[1.0-ml] XDMP-COMPUTE: (err:FORG0006)
cts:element-range-query(xs:QName("foo:duration"), ">=",
xs:duration("PT10M")) -- Cannot compute min((xs:duration("PT10M"),
xs:duration("PT10M")))
I've not found much in the way of documentation about the circumstances
in which XDMP-COMPUTE gets thrown. Can anyone explain what I might be
doing wrong?
Many thanks.
Iain
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general