blob: 7c9d37e39dd9a81690769ae31b373721bc166a27 [file] [log] [blame]
(: Name: annex-5 :)
(: Description: User defined function # 5 from annex E of F& O Specs. :)
declare namespace eg = "http://example.org";
declare function eg:value-except (
$arg1 as xs:anyAtomicType*,
$arg2 as xs:anyAtomicType*) as xs:anyAtomicType*
{
fn:distinct-values($arg1[not(.=$arg2)])
};
let $arg1 as xs:anyAtomicType := 1
let $arg2 as xs:anyAtomicType := 2
return
eg:value-except($arg1,$arg2)