// 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]";
|
|
}
|
|
}
|
|
}
|