Hi John, thanks, I knew it would be something blindingly simple!

cheers,
Jakob.



On Mon, May 9, 2011 at 17:26, John Snelson <[email protected]> wrote:
> Hi Jakob,
>
> MarkLogic does implement the "except" operator. You can use it like this:
>
> collection("c1") except collection("c2")
>
> John
>
> On 09/05/11 16:03, Jakob Fix wrote:
>> Hi,
>>
>> I have two collections c1 and c2 of documents where c2 is a subset of
>> c1, and I would like to get a sequence of all documents in c1 that are
>> not in c2. I was hoping to use the except [1] operator for this, but
>> MarkLogic does not seem to know it.
>>
>> Well, I just read [2] and there it says: " there is no requirement
>> that implementations should actually provide these functions" [3].  If
>> that is indeed the case, could you please tell me how I can get an
>> equivalent functionality?  By the way, I tried c1 - c2, and it doesn't
>> work.
>>
>> thanks,
>> Jakob.
>>
>>
>> [1] http://www.w3.org/TR/xpath-functions/#func-except
>> [2] http://www.w3.org/TR/xpath-functions
>> [3] http://www.w3.org/TR/xpath-functions/#namespace-prefixes
>
> --
> John Snelson, Senior Engineer                  http://twitter.com/jpcs
> MarkLogic Corporation                         http://www.marklogic.com
> _______________________________________________
> 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