Hi,
I need to query an element(Date) using cts:element-range-query, but the value
this element(Date) is in different format.
<Date Year="2011" Month="03" Day="04">
2011 Mar 04
</Date>
query :
let $fromDate := xs:date("2011-04-08")
let $toDate := xs:date("2011-06-08")
let $docs := cts:search(fn:doc("/misc/DocList.xml")/DocumentList/Document,
cts:and-query((
cts:element-range-query(xs:QName("Date"),
"<=",$fromDate),
cts:element-range-query(xs:QName("Date"), ">=",$toDate)
))
)
return $docs
How can run this query or I need to use some other api?
Thanks
Pragya
"This e-mail and any attachments transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential , proprietary or
privileged information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message. Any
unauthorized review, use, disclosure, dissemination, forwarding, printing or
copying of this e-mail or any action taken in reliance on this e-mail is
strictly prohibited and may be unlawful."
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general