SVGHMI: silence debug output in generated xhtml. svghmi
authorEdouard Tisserant
Tue, 30 Mar 2021 14:56:04 +0200
branchsvghmi
changeset 3212 2b5b3f4f26f0
parent 3211 938b55abe946
child 3213 afef7011f475
child 3215 da2481f359b7
SVGHMI: silence debug output in generated xhtml.
svghmi/gen_index_xhtml.xslt
svghmi/gen_index_xhtml.ysl2
--- a/svghmi/gen_index_xhtml.xslt	Tue Mar 30 14:54:43 2021 +0200
+++ b/svghmi/gen_index_xhtml.xslt	Tue Mar 30 14:56:04 2021 +0200
@@ -6855,11 +6855,12 @@
     <xsl:comment>
       <xsl:text>Made with SVGHMI. https://beremiz.org</xsl:text>
     </xsl:comment>
-    <xsl:comment>
-      <xsl:apply-templates select="document('')/*/debug:*"/>
-    </xsl:comment>
-    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-      <head/>
+    <html xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <style media="screen" type="text/css">
+          <xsl:value-of select="ns:GetFonts()"/>
+        </style>
+      </head>
       <body style="margin:0;overflow:hidden;user-select:none;touch-action:none;">
         <xsl:copy-of select="$result_svg"/>
         <script>
--- a/svghmi/gen_index_xhtml.ysl2	Tue Mar 30 14:54:43 2021 +0200
+++ b/svghmi/gen_index_xhtml.ysl2	Tue Mar 30 14:56:04 2021 +0200
@@ -64,7 +64,7 @@
         comment > Made with SVGHMI. https://beremiz.org
 
         // all debug output from included definitions, as comments
-        comment apply "document('')/*/debug:*";
+        // comment apply "document('')/*/debug:*";
 
         html xmlns="http://www.w3.org/1999/xhtml"
              xmlns:svg="http://www.w3.org/2000/svg"