--- a/svghmi/gen_index_xhtml.ysl2 Sun Apr 19 10:48:34 2020 +0200
+++ b/svghmi/gen_index_xhtml.ysl2 Sun Apr 19 22:01:12 2020 +0200
@@ -33,8 +33,10 @@
extension-element-prefixes="ns func exsl regexp str dyn"
exclude-result-prefixes="ns func exsl regexp str dyn debug preamble epilogue" {
+ const "svg", "/svg:svg";
const "hmi_elements", "//svg:*[starts-with(@inkscape:label, 'HMI:')]";
+
include hmi_tree.ysl2
include geometry.ysl2
@@ -47,7 +49,6 @@
include widget_*.ysl2
- include scripts.ysl2
template "/" {
comment > Made with SVGHMI. https://beremiz.org
@@ -68,7 +69,12 @@
// Inline SVG
copy "$result_svg";
script{
- call "scripts";
+ apply "document('')/*/preamble:*";
+
+ apply "document('')/*/epilogue:*";
+
+ include text svghmi.js
+
}
}
}