Hi Helen,

You can jump databases using xdmp:invoke or xdmp:eval.  Just pass the second 
database context as an option.  Of course you'll need to do this from a user 
with sufficient permissions.

The query for a URI pattern is really a separate question.  You can do it with 
maximum efficiency by using a directory query passed to a cts:uris() lexicon 
call, with your own where clause for pattern matching suffixes.

-jh-

On Aug 19, 2010, at 10:41 AM, helen chen wrote:

> I'm inside marklogic and in database A, if I want to get some document from 
> another database B and do something,  like if I want to get the list of 
> document with uri  pattern "/a/b/*xml" from database B,   how can I do it?
> 
> Thanks, Helen
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

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

Reply via email to