# HG changeset patch # User Edouard Tisserant # Date 1617717958 -7200 # Node ID cfa5690c8c15ee982a2c1e72829b5f1b1e29dd34 # Parent 507dd7bc8cb57f6809ec0924d881d2731b32cd31 SVGHMI: Naive implementation of widget path substitution in widget DnD: considers widget always have only one variable, and no type checking. diff -r 507dd7bc8cb5 -r cfa5690c8c15 svghmi/gen_dnd_widget_svg.xslt --- a/svghmi/gen_dnd_widget_svg.xslt Tue Apr 06 14:04:08 2021 +0200 +++ b/svghmi/gen_dnd_widget_svg.xslt Tue Apr 06 16:05:58 2021 +0200 @@ -131,7 +131,11 @@ - + + + @ + + diff -r 507dd7bc8cb5 -r cfa5690c8c15 svghmi/gen_dnd_widget_svg.ysl2 --- a/svghmi/gen_dnd_widget_svg.ysl2 Tue Apr 06 14:04:08 2021 +0200 +++ b/svghmi/gen_dnd_widget_svg.ysl2 Tue Apr 06 16:05:58 2021 +0200 @@ -38,7 +38,7 @@ svgtmpl "@*", mode="inline_svg" xsl:copy; svgtmpl "@inkscape:label[starts-with(., 'HMI:')]", mode="inline_svg" { - xsl:copy; + attrib "inkscape:label" > «substring-before(., '@')»@«$hmi_path» } template "node()", mode="inline_svg" {