SVGHMI: Systematically output local name as /* comment */ when emiting content. svghmi
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 08 May 2020 16:44:20 +0200
branchsvghmi
changeset 2947 25f593573579
parent 2946 76ebf973c47e
child 2948 faaf677ea99d
SVGHMI: Systematically output local name as /* comment */ when emiting content.
svghmi/gen_index_xhtml.ysl2
--- a/svghmi/gen_index_xhtml.ysl2	Fri Apr 24 10:03:40 2020 +0200
+++ b/svghmi/gen_index_xhtml.ysl2	Fri May 08 16:44:20 2020 +0200
@@ -7,7 +7,11 @@
 decl emit(*name) alias - {
     *name;
     template *name {
+        |
+        | /* «local-name()» */
+        |
         content;
+        |
     }
 };
 
@@ -56,12 +60,7 @@
         comment > Made with SVGHMI. https://beremiz.org
 
         // all debug output from included definitions, as comments
-        foreach "document('')/*/debug:*" {
-            comment {
-                | «local-name()» :
-                apply ".";
-            }
-        }
+        comment apply "document('')/*/debug:*";
 
         html xmlns="http://www.w3.org/1999/xhtml"
              xmlns:svg="http://www.w3.org/2000/svg"