svghmi/hmi_tree.ysl2
branchsvghmi
changeset 2939 4296ab974d4d
parent 2911 211d6a185e31
child 2940 034b6ce4f885
equal deleted inserted replaced
2938:1379cd5c69dd 2939:4296ab974d4d
   124     const "class_a", "$indexed_hmitree/*[@hmipath = $a]/@class";
   124     const "class_a", "$indexed_hmitree/*[@hmipath = $a]/@class";
   125     const "class_b", "$indexed_hmitree/*[@hmipath = $b]/@class";
   125     const "class_b", "$indexed_hmitree/*[@hmipath = $b]/@class";
   126     result "$class_a and $class_b and $class_a = $class_b";
   126     result "$class_a and $class_b and $class_a = $class_b";
   127 }
   127 }
   128 
   128 
   129 reflect:hmi_tree;
   129 debug:hmi_tree;
   130 
   130 
   131 // Debug data
   131 // Debug data
   132 template "*", mode="testtree"{
   132 template "*", mode="testtree"{
   133     param "indent", "''";
   133     param "indent", "''";
   134     > «$indent» «local-name()» 
   134     > «$indent» «local-name()» 
   136     > \n
   136     > \n
   137     apply "*", mode="testtree" {
   137     apply "*", mode="testtree" {
   138         with "indent" value "concat($indent,'>')"
   138         with "indent" value "concat($indent,'>')"
   139     };
   139     };
   140 }
   140 }
   141 template "reflect:hmi-tree", mode="debug" {
   141 template "debug:hmi-tree", mode="debug" {
   142     | Raw HMI tree
   142     | Raw HMI tree
   143     apply "$hmitree", mode="testtree";
   143     apply "$hmitree", mode="testtree";
   144     |
   144     |
   145     | Indexed HMI tree
   145     | Indexed HMI tree
   146     apply "$indexed_hmitree", mode="testtree";
   146     apply "$indexed_hmitree", mode="testtree";