edouard@3221: include yslt_noindent.yml2 edouard@3221: edouard@3221: in xsl decl svgtmpl(match, xmlns="http://www.w3.org/2000/svg") alias template; edouard@3221: edouard@3221: istylesheet edouard@3221: /* From Inkscape */ edouard@3221: xmlns:dc="http://purl.org/dc/elements/1.1/" edouard@3221: xmlns:cc="http://creativecommons.org/ns#" edouard@3221: xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" edouard@3221: xmlns:svg="http://www.w3.org/2000/svg" edouard@3221: xmlns:xlink="http://www.w3.org/1999/xlink" edouard@3221: xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" edouard@3221: xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" edouard@3221: xmlns:xhtml="http://www.w3.org/1999/xhtml" edouard@3221: edouard@3221: /* Namespace to invoke python code */ edouard@3221: xmlns:ns="beremiz" edouard@3221: edouard@3221: extension-element-prefixes="ns func exsl regexp str dyn" edouard@3221: exclude-result-prefixes="ns func exsl regexp str dyn" { edouard@3221: edouard@3221: const "svg", "/svg:svg"; edouard@3221: const "hmi_elements", "//svg:*[starts-with(@inkscape:label, 'HMI:')]"; edouard@3221: edouard@3221: include parse_labels.ysl2 edouard@3221: edouard@3221: svgtmpl "@*", mode="inline_svg" xsl:copy; edouard@3221: edouard@3221: template "node()", mode="inline_svg" { edouard@3221: xsl:copy apply "@* | node()", mode="inline_svg"; edouard@3221: } edouard@3221: edouard@3221: template "/" { edouard@3221: comment > Widget dropped in Inkscape from Beremiz edouard@3221: edouard@3221: apply "/", mode="inline_svg"; edouard@3221: } edouard@3221: }