Hi
I want to sort my content using sort operator for newsdate element, but my date
format is dd-mm-yyyy. But Marklogic date comparison works on yyyy-mm-dd
sort : dateAscending
<operator name="sort">
<state name="dateAscending">
<sort-order direction="ascending" type="xs:date"
<element ns="" name="newsdate" />
</sort-order>
</state>
</operator>
Getting 500 internal server error XDMP-CAST: (err:FORG0001)
xs:date(($result/descendant::newsdate)[1]) -- Invalid cast: "03-12-2013" cast
as xs:date
Thanks,
Vikas Singh
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient(s), please reply to the sender and
destroy all copies of the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email,
and/or any action taken in reliance on the contents of this e-mail is strictly
prohibited and may be unlawful.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general