122 const "class_a", "$indexed_hmitree/*[@hmipath = $a]/@class"; |
122 const "class_a", "$indexed_hmitree/*[@hmipath = $a]/@class"; |
123 const "class_b", "$indexed_hmitree/*[@hmipath = $b]/@class"; |
123 const "class_b", "$indexed_hmitree/*[@hmipath = $b]/@class"; |
124 result "$class_a and $class_b and $class_a = $class_b"; |
124 result "$class_a and $class_b and $class_a = $class_b"; |
125 } |
125 } |
126 |
126 |
|
127 reflect:hmi_tree; |
|
128 |
127 // Debug data |
129 // Debug data |
128 template "*", mode="testtree"{ |
130 template "*", mode="testtree"{ |
129 param "indent", "''"; |
131 param "indent", "''"; |
130 > «$indent» «local-name()» |
132 > «$indent» «local-name()» |
131 foreach "@*" > «local-name()»="«.»" |
133 foreach "@*" > «local-name()»="«.»" |
132 > \n |
134 > \n |
133 apply "*", mode="testtree" { |
135 apply "*", mode="testtree" { |
134 with "indent" value "concat($indent,'>')" |
136 with "indent" value "concat($indent,'>')" |
135 }; |
137 }; |
136 } |
138 } |
137 function "debug_hmitree" { |
139 template "reflect:hmi-tree", mode="debug" { |
138 | Raw HMI tree |
140 | Raw HMI tree |
139 apply "$hmitree", mode="testtree"; |
141 apply "$hmitree", mode="testtree"; |
140 | |
142 | |
141 | Indexed HMI tree |
143 | Indexed HMI tree |
142 apply "$indexed_hmitree", mode="testtree"; |
144 apply "$indexed_hmitree", mode="testtree"; |
143 | |
145 | |
144 | Parsed Widgets |
146 | Parsed Widgets |
145 copy "_parsed_widgets"; |
147 copy "_parsed_widgets"; |
146 apply "$parsed_widgets", mode="testtree"; |
148 apply "$parsed_widgets", mode="testtree"; |
147 } |
149 } |
148 !debug_output_calls.append("debug_hmitree") |
|