sync/functions.ysl2
author Roker <roker@pep-project.org>
Tue, 02 May 2017 08:48:35 +0200
branchENGINE-198
changeset 1741 5bd49bd73192
parent 1513 e7f7e42385b5
child 2287 026ab4dae779
permissions -rw-r--r--
add more assertions
     1 // This file is under GNU General Public License 3.0
     2 // see LICENSE.txt
     3 
     4 // function library
     5 
     6 def "func:distinctName" {
     7     param "nodes", "/..";
     8     choose {
     9         when "not($nodes)"
    10             result "/..";
    11         otherwise {
    12             result "$nodes[1] | func:distinctName($nodes[position() > 1])[@name != $nodes[1]/@name]";
    13         }
    14     }
    15 }