xsl-list
[Top] [All Lists]

[xsl] Duplicates in a sequence ?

2015-03-25 05:58:36
Hello

I have a sequence and want to know whether there are duplicate values in it.

I came out with the following and think there must be an easy solution. Any 
suggestion?

let $sequence :=(1,12,14,17,22,12) return (count(distinct-values($sequence)) ne 
count($sequence))


Thanks in advance
Leo
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>