diff -r 022db76c3bff -r b67af0b8dc72 svghmi/gen_index_xhtml.ysl2 --- a/svghmi/gen_index_xhtml.ysl2 Tue Mar 17 07:39:50 2020 +0100 +++ b/svghmi/gen_index_xhtml.ysl2 Tue Mar 17 08:00:33 2020 +0100 @@ -264,16 +264,9 @@ comment > Made with SVGHMI. https://beremiz.org // use python to call all debug output from included definitions - // '&bug' is a workaround for old pyPEG that choke on empty python results - !"&bug "+"\n".join(["comment {|\n| %s:\n call \"%s\";\n| \n}"%(n,n) for n in debug_output_calls])! - - // TODO - comment { - apply "$hmitree", mode="testtree"; - } - comment { - apply "$indexed_hmitree", mode="testtree"; - } + // '&bug' is a workaround for pyPEG that choke on yml2 python results not parsing to a single call + !"&bug {"+"\n".join(["comment {\n| \n| %s:\n call \"%s\";\n| \n}"%(n,n) for n in debug_output_calls]) +"}"! + comment { | Detachable : foreach "$detachable_elements"{ @@ -514,17 +507,6 @@ // } - /**/ - template "*", mode="testtree"{ - param "indent", "''"; - > «$indent» «local-name()» - foreach "@*" > «local-name()»="«.»" - > \n - apply "*", mode="testtree" { - with "indent" value "concat($indent,'>')" - }; - } - /**/ function "defs_by_labels" { param "labels","''";