svghmi/widgets_common.ysl2
branchsvghmi
changeset 3101 4cbf024a6640
parent 3099 c7d14130401f
child 3119 17a9c7a334f7
--- a/svghmi/widgets_common.ysl2	Tue Dec 29 15:37:41 2020 +0100
+++ b/svghmi/widgets_common.ysl2	Tue Dec 29 15:38:31 2020 +0100
@@ -31,18 +31,21 @@
                 choose {
                     when "not(@type)" {
                         warning > Widget «$widget/@type» id="«$eltid»" : No match for path "«@value»" in HMI tree
-                        > undefined`if "position()!=last()" > ,`
+                        > undefined
                     }
                     when "@type = 'PAGE_LOCAL'" 
-                        > "«@value»"`if "position()!=last()" > ,`
+                        > "«@value»"
                     when "@type = 'HMI_LOCAL'" 
-                        > hmi_local_index("«@value»")`if "position()!=last()" > ,`
+                        > hmi_local_index("«@value»")
+                    otherwise 
+                        error > Internal error while processing widget's non indexed HMI tree path : unknown type
                 }
             }
             otherwise {
-                > «@index»`if "position()!=last()" > ,`
-            }
-        }
+                > «@index»
+            }
+        }
+        if "position()!=last()" > ,
     }
 
     const "minmaxes" foreach "$widget/path" {