Thank you, Pierrick.
I'd recently taken a look at the functions in this namespace and this
function appeared useful :
xmldb:last-modified($a as item(), $b as xs:string) xs:dateTime?
However, you are required to specify the resource name, $b, in collection
$a, and it will return the last-modified dateTime.
What I am looking for is something like :
last-modified-after($a as item(), $b as xs:dateTime) that would return all
resources by name, that have been modified in collection $a after dateTime
$b.
If this doesn't exist currently, can anyway suggest an elegant way to
accomplish this? Noting that this collection may have a couple of thousand
documents.
Best,
Roland
On Fri, Jun 5, 2009 at 1:36 AM, Pierrick Brihaye
<pierrick.brihaye@...:
> Hi,
>
> Roland Chan a écrit :
>
> I was hoping someone could point me in the right direction.
>>
>> We'd like to query an eXist collection and find *all* documents that were
>> modified *after" a certain date. Is this possible from an XQuery?
>>
>
> Yes.
>
> eXist provides a set of utility XQuery functions (in the
> http://exist-db.org/xquery/xmldb namespace) which give access to the
> documents "history".
>
> See :
> http://demo.exist-db.org/exist/xquery/functions.xql
>
> Cheers,
>
> p.b.
>
|