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 debug:hmi_tree; |
|
130 |
|
131 // Debug data |
129 // Debug data |
132 template "*", mode="testtree"{ |
130 template "*", mode="testtree"{ |
133 param "indent", "''"; |
131 param "indent", "''"; |
134 > «$indent» «local-name()» |
132 > «$indent» «local-name()» |
135 foreach "@*" > «local-name()»="«.»" |
133 foreach "@*" > «local-name()»="«.»" |
136 > \n |
134 > \n |
137 apply "*", mode="testtree" { |
135 apply "*", mode="testtree" { |
138 with "indent" value "concat($indent,'>')" |
136 with "indent" value "concat($indent,'>')" |
139 }; |
137 }; |
140 } |
138 } |
141 template "debug:hmi-tree", mode="debug" { |
139 emit "debug:hmi-tree" { |
142 | Raw HMI tree |
140 | Raw HMI tree |
143 apply "$hmitree", mode="testtree"; |
141 apply "$hmitree", mode="testtree"; |
144 | |
142 | |
145 | Indexed HMI tree |
143 | Indexed HMI tree |
146 apply "$indexed_hmitree", mode="testtree"; |
144 apply "$indexed_hmitree", mode="testtree"; |