[MarkLogic Dev General] RE: General Digest, Vol 37, Issue 13

Gary Vidal gvidal at alm.com
Fri Jul 20 13:07:46 PDT 2007


I think this would work

for $i in xdmp:directory("/resources/")
return 
fn:document-uri($i)


Gary Vidal
American Lawyer Media
Sr. .Net Developer
Tel: 212-592-4946
gvidal at alm.com

-----Original Message-----
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of
general-request at developer.marklogic.com
Sent: Friday, July 20, 2007 3:00 PM
To: general at developer.marklogic.com
Subject: General Digest, Vol 37, Issue 13

Send General mailing list submissions to
	general at developer.marklogic.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://xqzone.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
	general-request at developer.marklogic.com

You can reach the person managing the list at
	general-owner at developer.marklogic.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of General digest..."


Today's Topics:

   1. query (Kalidasu Surada)
   2. Re: query (Steve Christensen)
   3. Re: query (Michael Blakeley)


----------------------------------------------------------------------

Message: 1
Date: Fri, 20 Jul 2007 13:15:21 +0530
From: "Kalidasu Surada" <kalidasu.surada at gmail.com>
Subject: [MarkLogic Dev General] query
To: General at developer.marklogic.com
Message-ID:
	<1ed647bb0707200045j756d5d44rcfce013bc958793c at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I am getting list of document residing in a database through this query

for $i in input()
return
      document-uri($i)

but wht the thing this i want to get the documents from particular
folder.

Could you please do the needfull hlep


Thanks and Regards,

Kalidasu Surada
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://xqzone.marklogic.com/pipermail/general/attachments/20070720/4e132
02b/attachment-0001.html

------------------------------

Message: 2
Date: Fri, 20 Jul 2007 10:33:46 -0600
From: Steve Christensen <stnchris at xmission.com>
Subject: Re: [MarkLogic Dev General] query
To: General Mark Logic Developer Discussion
	<general at developer.marklogic.com>
Message-ID: <20070720163346.GA10191 at xmission.com>
Content-Type: text/plain; charset=us-ascii

> Hi,
> 
> I am getting list of document residing in a database through this
query
> 
> for $i in input()
> return
>      document-uri($i)
> 
> but wht the thing this i want to get the documents from particular
folder.
> 

If you are using ML 3.2, you can enable URI lexicons in your database
and use the following function: 
http://xqzone.marklogic.com/pubs/3.2/apidocs/SearchBuiltins.html#uri-mat
ch


-Steve


------------------------------

Message: 3
Date: Fri, 20 Jul 2007 11:08:54 -0700
From: Michael Blakeley <michael.blakeley at marklogic.com>
Subject: Re: [MarkLogic Dev General] query
To: General Mark Logic Developer Discussion
	<general at developer.marklogic.com>
Message-ID: <46A0FA36.1090807 at marklogic.com>
Content-Type: text/plain; charset="utf-8"

See
http://developer.marklogic.com/pubs/3.2/apidocs/Extension.html#directory

-- Mike

Kalidasu Surada wrote:
> Hi,
> 
> I am getting list of document residing in a database through this
query
> 
> for $i in input()
> return
>       document-uri($i)
> 
> but wht the thing this i want to get the documents from particular
folder.
> 
> Could you please do the needfull hlep
> 
> 
> Thanks and Regards,
> 
> Kalidasu Surada
> 
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://xqzone.com/mailman/listinfo/general

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4532 bytes
Desc: S/MIME Cryptographic Signature
Url :
http://xqzone.marklogic.com/pipermail/general/attachments/20070720/34110
8f4/smime-0001.bin

------------------------------

_______________________________________________
General mailing list
General at developer.marklogic.com
http://xqzone.com/mailman/listinfo/general


End of General Digest, Vol 37, Issue 13
***************************************


More information about the General mailing list