diff -r 67069f4634b7 -r 864a6e5984cc svghmi/analyse_widget.xslt --- a/svghmi/analyse_widget.xslt Fri Oct 01 02:52:25 2021 +0200 +++ b/svghmi/analyse_widget.xslt Fri Oct 01 02:54:35 2021 +0200 @@ -339,9 +339,11 @@ - It needs "text" (svg:text), "box" (svg:rect), "button" (svg:*), - - and "highlight" (svg:rect) labeled elements. + It needs "text" (svg:text or svg:use referring to svg:text), + + "box" (svg:rect), "button" (svg:*), and "highlight" (svg:rect) + + labeled elements. @@ -353,11 +355,19 @@ - When only one argument is given, and argment contains "#langs" then list of - - texts is automatically set to the list of human-readable languages supported - - by this HMI. + When only one argument is given and argment contains "#langs" then list of + + texts is automatically set to the human-readable list of supported + + languages by this HMI. + + + + If "text" labeled element is of type svg:use and refers to a svg:text + + element part of a TextList widget, no argument is expected. In that case + + list of texts is set to TextList content. @@ -529,6 +539,30 @@ + + List widget is a svg:group, list items are labeled elements + + in that group. + + + + To use a List, clone (svg:use) one of the items inside the widget that + + expects a List. + + + + Positions of items are relative to each other, and they must all be in the + + same place. In order to make editing easier it is therefore recommanded to + + make stacked clones of svg elements spread nearby the list. + + + + A named list of named graphical elements + + @@ -634,6 +668,58 @@ value to compare to labels + + + + + + TextList widget is a svg:group, list items are labeled elements + + in that group. + + + + To use a TextList, clone (svg:use) one of the items inside the widget + + that expects a TextList. + + + + In this list, (translated) text content is what matters. Nevertheless + + text style of the cloned item will be applied in client widget. + + + + A named list of ordered texts + + + + + + + + + TextStyleList widget is a svg:group, list items are labeled elements + + in that group. + + + + To use a TextStyleList, clone (svg:use) one of the items inside the widget + + that expects a TextStyleList. + + + + In this list, only style matters. Text content is ignored. + + + + A named list of named texts + + +