diff -r b5dccd0d99ac -r 64e603b84aa3 svghmi/widgets_common.ysl2 --- a/svghmi/widgets_common.ysl2 Sun May 10 17:01:09 2020 +0200 +++ b/svghmi/widgets_common.ysl2 Sun May 10 23:40:43 2020 +0200 @@ -21,7 +21,7 @@ } }; -template "svg:*", mode="hmi_elements" { +template "svg:*", mode="hmi_widgets" { const "widget", "func:widget(@id)"; const "eltid","@id"; const "args" foreach "$widget/arg" > "«@value»"`if "position()!=last()" > ,` @@ -117,9 +117,12 @@ } || +const "excluded_types", "str:split('Page Lang List')"; +const "excluded_ids","$parsed_widgets/widget[not(@type = $excluded_types)]/@id"; + emit "preamble:hmi-elements" { | var hmi_widgets = { - apply "$hmi_elements", mode="hmi_elements"; + apply "$hmi_elements[@id = $excluded_ids]", mode="hmi_widgets"; | } }