[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Duplicates in a sequence ?
Leo Studer leo.studer@xxxxxxxxxxx wrote:
I have a sequence and want to know whether there are duplicate values in it. I think is fine to compare the count, and http://www.xsltfunctions.com/xsl/functx_are-distinct-values.html has the same idea basically <xsl:function name="functx:are-distinct-values" as="xs:boolean" xmlns:functx="http://www.functx.com"> <xsl:param name="seq" as="xs:anyAtomicType*"/> <xsl:sequence select=" count(distinct-values($seq)) = count($seq) "/> </xsl:function>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|