Hi Andreas,

You can pass a sequence of URIs to cts:document-query() ( 
http://docs.marklogic.com/cts:document-query ).

As for your directory query example, maybe you need to set the depth to 
"infinity"? http://docs.marklogic.com/cts:directory-query

Thanks.

-jb


From: Andreas Hubmer 
<[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Friday, February 20, 2015 at 6:32 AM
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] cts:element-values on document-properties

Hi,

I am wondering whether it is possible to constrain an element-values-query on a 
property element by a query on the document.

I have a property person and
  cts:element-values(xs:QName("ns:person"))
gives me all values for that property. This works fine.

Now I want to constrain the list of values by a query on the documents to which 
the properties belong. For example, let's say that I only want the property 
values of documents within some directory.

let $query := cts:directory-query("/mydir/")
return cts:element-values(xs:QName("ns:person"), (), (), $query))
Now I don't get any results any more. It seems that the result of $query does 
not contain the properties. Is it possible to do something like 
cts:properties-fragment-query, but the other way round?

Any ideas?

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

Reply via email to