Edouard@2753: include yslt_noindent.yml2 Edouard@2779: Edouard@2779: // overrides yslt's output function to set CDATA Edouard@2798: decl output(method, cdata-section-elements="xhtml:script"); Edouard@2792: Edouard@2792: istylesheet Edouard@2753: /* From Inkscape */ Edouard@2753: xmlns:dc="http://purl.org/dc/elements/1.1/" Edouard@2753: xmlns:cc="http://creativecommons.org/ns#" Edouard@2753: xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" Edouard@2753: xmlns:svg="http://www.w3.org/2000/svg" Edouard@2838: xmlns:xlink="http://www.w3.org/1999/xlink" Edouard@2753: xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" Edouard@2753: xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" Edouard@2798: xmlns:xhtml="http://www.w3.org/1999/xhtml" edouard@2939: xmlns:debug="debug" Edouard@2753: Edouard@2753: /* Our namespace to invoke python code */ Edouard@2753: xmlns:ns="beremiz" Edouard@2854: extension-element-prefixes="ns func exsl regexp str dyn" edouard@2939: exclude-result-prefixes="ns str regexp exsl func dyn debug" { Edouard@2792: Edouard@2790: Edouard@2879: const "hmi_elements", "//svg:*[starts-with(@inkscape:label, 'HMI:')]"; Edouard@2879: Edouard@2877: include hmi_tree.ysl2 Edouard@2877: Edouard@2877: include geometry.ysl2 Edouard@2877: Edouard@2877: include detachable_pages.ysl2 Edouard@2853: Edouard@2878: include inline_svg.ysl2 Edouard@2854: edouard@2883: include widgets_common.ysl2 edouard@2883: edouard@2883: include widget_*.ysl2 Edouard@2881: edouard@2938: include scripts.ysl2 edouard@2938: edouard@2939: template "*[namespace-uri()='debug']", mode="debug_as_comment" { edouard@2904: comment { edouard@2904: | «local-name()» : edouard@2904: apply ".", mode="debug"; edouard@2904: } edouard@2904: } edouard@2904: Edouard@2853: template "/" { Edouard@2793: comment > Made with SVGHMI. https://beremiz.org edouard@2873: edouard@2904: // all debug output from included definitions, as comments edouard@2939: // apply "document('')/*/debug:*", mode="debug_as_comment"; edouard@2874: Edouard@2840: html xmlns="http://www.w3.org/1999/xhtml" Edouard@2840: xmlns:svg="http://www.w3.org/2000/svg" Edouard@2840: xmlns:xlink="http://www.w3.org/1999/xlink" { Edouard@2792: head; Edouard@2808: body style="margin:0;overflow:hidden;" { edouard@2883: // Inline SVG Edouard@2854: copy "$result_svg"; Edouard@2792: script{ Edouard@2792: call "scripts"; Edouard@2792: } Edouard@2792: } Edouard@2792: } Edouard@2792: } Edouard@2753: }