My simple test works so it's probably something else I'm not seeing:
declare default element namespace "http://developer.envisn.com/xmlns/envisn/netvisn/"; let $seq1 := ('a', 'b','c') let $doc := <doc><n>a</n><n>c</n></doc> let $seq2 := $doc/n return distinct-values($seq1[.=$seq2]) Gary From: [email protected] [mailto:[email protected]] On Behalf Of Gary Larsen Sent: Monday, February 22, 2016 4:13 PM To: 'General MarkLogic Developer Discussion' Subject: [MarkLogic Dev General] comparing sequences Hi, Probably not ML specific but hoping someone can help. I'm having an issue comparing sequence of strings: let $seq1 = ('a','b','c') with the results of a query let $seq2 := cts:search(doc(), $cqf, "unfiltered")/doc/value/text() but this finds no results when it should: let $intersection := distinct-values(seq1 [.=$seq2]) The intersection between two manual sequences works. What am I missing? Thanks, Gary
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
