p≡p engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
352 B

// This file is under GNU General Public License 3.0
// see LICENSE.txt
// function library
def "func:distinctName" {
param "nodes", "/..";
choose {
when "not($nodes)"
result "/..";
otherwise {
result "$nodes[1] | func:distinctName($nodes[position() > 1])[@name != $nodes[1]/@name]";
}
}
}