equal
deleted
inserted
replaced
89 |
89 |
90 // Avoid nested detachables |
90 // Avoid nested detachables |
91 const "_detachable_elements", "func:detachable_elements($hmi_pages)"; |
91 const "_detachable_elements", "func:detachable_elements($hmi_pages)"; |
92 const "detachable_elements", "$_detachable_elements[not(ancestor::*/@id = $_detachable_elements/@id)]"; |
92 const "detachable_elements", "$_detachable_elements[not(ancestor::*/@id = $_detachable_elements/@id)]"; |
93 |
93 |
94 def "func:is_descendant_path" { |
|
95 param "descend"; |
|
96 param "ancest"; |
|
97 result "string-length($ancest) > 0 and starts-with($descend,$ancest)"; |
|
98 } |
|
99 |
|
100 |
|
101 const "forEach_widgets_ids", "$parsed_widgets/widget[@type = 'ForEach']/@id"; |
94 const "forEach_widgets_ids", "$parsed_widgets/widget[@type = 'ForEach']/@id"; |
102 const "forEach_widgets", "$hmi_elements[@id = $forEach_widgets_ids]"; |
95 const "forEach_widgets", "$hmi_elements[@id = $forEach_widgets_ids]"; |
103 const "in_forEach_widget_ids", "func:refered_elements($forEach_widgets)[not(@id = $forEach_widgets_ids)]/@id"; |
96 const "in_forEach_widget_ids", "func:refered_elements($forEach_widgets)[not(@id = $forEach_widgets_ids)]/@id"; |
104 |
97 |
105 template "svg:*", mode="page_desc" { |
98 template "svg:*", mode="page_desc" { |