svghmi/hmi_tree.ysl2
branchsvghmi
changeset 2900 3ef217f525ff
parent 2894 4cf9ad35e6d0
child 2904 92d115d8828d
equal deleted inserted replaced
2899:f1baf2d0552c 2900:3ef217f525ff
   114     param "ancest";
   114     param "ancest";
   115     // TODO : use HMI tree to answer more accurately
   115     // TODO : use HMI tree to answer more accurately
   116     result "string-length($ancest) > 0 and starts-with($descend,$ancest)";
   116     result "string-length($ancest) > 0 and starts-with($descend,$ancest)";
   117 }
   117 }
   118 
   118 
       
   119 def "func:same_class_paths" {
       
   120     param "a";
       
   121     param "b";
       
   122     const "class_a", "$indexed_hmitree/*[@hmipath = $a]/@class";
       
   123     const "class_b", "$indexed_hmitree/*[@hmipath = $b]/@class";
       
   124     result "$class_a and $class_b and $class_a = $class_b";
       
   125 }
   119 
   126 
   120 // Debug data
   127 // Debug data
   121 template "*", mode="testtree"{
   128 template "*", mode="testtree"{
   122     param "indent", "''";
   129     param "indent", "''";
   123     > «$indent» «local-name()» 
   130     > «$indent» «local-name()»