In "context" how to use date function? I want to keep the triples only for last 10 days of the doc ingested in ML.
<template xmlns="http://marklogic.com/xdmp/tde">
<context>/MedlineCitation[createDate > ( fn:currentDateTime() - xs:dayTimeDuration('P10D')]</context>
<triples>
<triple>
<subject>
<val>sem:iri(concat(ForeName,' ',LastName))</val>
</subject>
<predicate>
<val>sem:iri('authored')</val>
</predicate>
<object>
<val>xs:string(../../ArticleTitle)</val>
</object>
</triple>
</triples>
</template>