As Chris noted, cts:uris() will do it.

This is the code snippet that I use typically use for ascending order.

cts:uris("/", ("document", "ascending"), ())



If using directories then you could add a directory query.

cts:uris("/content/", ("document", "ascending"), 
cts:directory-query("/content/", "infinity"))



From: [email protected] 
[mailto:[email protected]] On Behalf Of Christopher Hamlin
Sent: Saturday, March 15, 2014 4:29 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Xquery application



Hi,


If you have the uri lexicon enabled, take a look at these functions to see if 
they are what you want:

http://docs.marklogic.com/cts:uris
http://docs.marklogic.com/cts:uri-match

/ch



On Sat, Mar 15, 2014 at 4:25 PM, Awadhesh 
<[email protected]<mailto:[email protected]>> wrote:
Hi ,

I am a new baby for Xquery. Looking forward to write some Xquery application 
using Marklogic.


 1. List all the document names in descending or ascending order

Looking forward for any guidance from forum.



_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to