Hi,

declare variable $uri external ;
> exists(xdmp:document-properties($uri)//prop:directory)

This query is working fine..

xdmp:exists(xdmp:directory($uri, 'infinity')) ==> this query will return true 
only if some documents are present in the given uri path.


Thanks All.

Regards,
VishnuRaaj R|Senior Engineer : Microsoft-Global Practices|MindTree Ltd.|TP 2/2, 
Ascendas Mahindra IT Park, Mahindra World City - SEZ, Natham Sub Post, 
Chengalpet, Chennai - 603002, INDIA|Voice +91 44 67497150 / Mobile +91 
9994109328|email: [email protected]|www.mindtree.com|

 Save a tree

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Florent Georges
Sent: Tuesday, August 31, 2010 10:53 PM
To: Michael Blakeley; General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] Query on directories

Lee, David wrote:

  Hi,

> To me this implies that URI's need not have "directories"
> associated with them.  Is this wrong ?

  Not to me at least.  A URI is an identifier.  You can map it
easily to a directory structure (for the correct definition of
"directory").  But not necessarily.  What about URNs?  What about
HTTP URI?

  The only drawback I ran into is that we don't have an implicit
root for WebDAV servers, so it is not possible to browse the ML
content through WebDAV if you have documents with URIs like:

    /some/thing
    /dir/file
    hello/world

  Regards,

--
Florent Georges
http://fgeorges.org/




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

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

Reply via email to