sync/functions.ysl2
author Krista Bennett <krista@pep-project.org>
Fri, 01 Jun 2018 10:30:22 +0200
branchENGINE-139
changeset 2735 731b17a2e52f
parent 623 533a7fcc423b
child 1513 e7f7e42385b5
permissions -rw-r--r--
close branch
     1 // function library
     2 
     3 def "func:distinctName" {
     4     param "nodes", "/..";
     5     choose {
     6         when "not($nodes)"
     7             result "/..";
     8         otherwise {
     9             result "$nodes[1] | func:distinctName($nodes[position() > 1])[@name != $nodes[1]/@name]";
    10         }
    11     }
    12 }