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