diff -r 7bdb766c2a4d -r 315f17e74ef5 svghmi/widgets_common.ysl2 --- a/svghmi/widgets_common.ysl2 Sun May 02 23:01:08 2021 +0200 +++ b/svghmi/widgets_common.ysl2 Sun May 02 23:15:23 2021 +0200 @@ -21,6 +21,11 @@ } }; +in xsl decl widget_desc(%name, match="widget[@type='%name']", mode="widget_desc") alias template { + type > «@type» + content; +}; + in xsl decl widget_class(%name, *clsname="%nameWidget", match="widget[@type='%name']", mode="widget_class") alias template { | class `text **clsname` extends Widget{ content;