diff -r f1baf2d0552c -r 3ef217f525ff svghmi/hmi_tree.ysl2 --- a/svghmi/hmi_tree.ysl2 Wed Mar 25 14:09:15 2020 +0100 +++ b/svghmi/hmi_tree.ysl2 Thu Mar 26 11:17:34 2020 +0100 @@ -116,6 +116,13 @@ result "string-length($ancest) > 0 and starts-with($descend,$ancest)"; } +def "func:same_class_paths" { + param "a"; + param "b"; + const "class_a", "$indexed_hmitree/*[@hmipath = $a]/@class"; + const "class_b", "$indexed_hmitree/*[@hmipath = $b]/@class"; + result "$class_a and $class_b and $class_a = $class_b"; +} // Debug data template "*", mode="testtree"{