equal
deleted
inserted
replaced
1 <?xml version="1.0"?> |
1 <?xml version="1.0"?> |
2 <xsl:stylesheet xmlns:ns="beremiz" xmlns:definitions="definitions" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:func="http://exslt.org/functions" xmlns:epilogue="epilogue" xmlns:preamble="preamble" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:svg="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:str="http://exslt.org/strings" xmlns:regexp="http://exslt.org/regular-expressions" xmlns:exsl="http://exslt.org/common" xmlns:declarations="declarations" xmlns:debug="debug" exclude-result-prefixes="ns func exsl regexp str dyn debug preamble epilogue declarations definitions" extension-element-prefixes="ns func exsl regexp str dyn" version="1.0"> |
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:regexp="http://exslt.org/regular-expressions" xmlns:str="http://exslt.org/strings" xmlns:func="http://exslt.org/functions" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:debug="debug" xmlns:preamble="preamble" xmlns:declarations="declarations" xmlns:definitions="definitions" xmlns:epilogue="epilogue" xmlns:ns="beremiz" version="1.0" extension-element-prefixes="ns func exsl regexp str dyn" exclude-result-prefixes="ns func exsl regexp str dyn debug preamble epilogue declarations definitions"> |
3 <xsl:output method="xml" cdata-section-elements="xhtml:script"/> |
3 <xsl:output cdata-section-elements="xhtml:script" method="xml"/> |
4 <xsl:variable name="svg" select="/svg:svg"/> |
4 <xsl:variable name="svg" select="/svg:svg"/> |
5 <xsl:variable name="hmi_elements" select="//svg:*[starts-with(@inkscape:label, 'HMI:')]"/> |
5 <xsl:variable name="hmi_elements" select="//svg:*[starts-with(@inkscape:label, 'HMI:')]"/> |
6 <xsl:variable name="hmitree" select="ns:GetHMITree()"/> |
6 <xsl:variable name="hmitree" select="ns:GetHMITree()"/> |
7 <xsl:variable name="_categories"> |
7 <xsl:variable name="_categories"> |
8 <noindex> |
8 <noindex> |
253 </xsl:choose> |
253 </xsl:choose> |
254 </xsl:if> |
254 </xsl:if> |
255 </path> |
255 </path> |
256 </xsl:if> |
256 </xsl:if> |
257 </xsl:for-each> |
257 </xsl:for-each> |
|
258 <xsl:if test="svg:desc"> |
|
259 <desc> |
|
260 <xsl:value-of select="svg:desc/text()"/> |
|
261 </desc> |
|
262 </xsl:if> |
258 </widget> |
263 </widget> |
259 </xsl:if> |
264 </xsl:if> |
260 </xsl:template> |
265 </xsl:template> |
261 <xsl:template mode="genlabel" match="arg"> |
266 <xsl:template mode="genlabel" match="arg"> |
262 <xsl:text>:</xsl:text> |
267 <xsl:text>:</xsl:text> |
1741 </xsl:text> |
1746 </xsl:text> |
1742 <xsl:text> |
1747 <xsl:text> |
1743 </xsl:text> |
1748 </xsl:text> |
1744 </xsl:template> |
1749 </xsl:template> |
1745 <xsl:variable name="excluded_types" select="str:split('Page VarInit VarInitPersistent')"/> |
1750 <xsl:variable name="excluded_types" select="str:split('Page VarInit VarInitPersistent')"/> |
1746 <xsl:key use="@type" name="TypesKey" match="widget"/> |
1751 <xsl:key name="TypesKey" match="widget" use="@type"/> |
1747 <declarations:hmi-classes/> |
1752 <declarations:hmi-classes/> |
1748 <xsl:template match="declarations:hmi-classes"> |
1753 <xsl:template match="declarations:hmi-classes"> |
1749 <xsl:text> |
1754 <xsl:text> |
1750 </xsl:text> |
1755 </xsl:text> |
1751 <xsl:text>/* </xsl:text> |
1756 <xsl:text>/* </xsl:text> |
7444 </xsl:template> |
7449 </xsl:template> |
7445 <xsl:template match="/"> |
7450 <xsl:template match="/"> |
7446 <xsl:comment> |
7451 <xsl:comment> |
7447 <xsl:text>Made with SVGHMI. https://beremiz.org</xsl:text> |
7452 <xsl:text>Made with SVGHMI. https://beremiz.org</xsl:text> |
7448 </xsl:comment> |
7453 </xsl:comment> |
7449 <html xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1999/xhtml"> |
7454 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
7450 <head> |
7455 <head> |
7451 <style media="screen" type="text/css"> |
7456 <style type="text/css" media="screen"> |
7452 <xsl:value-of select="ns:GetFonts()"/> |
7457 <xsl:value-of select="ns:GetFonts()"/> |
7453 </style> |
7458 </style> |
7454 </head> |
7459 </head> |
7455 <body style="margin:0;overflow:hidden;user-select:none;touch-action:none;"> |
7460 <body style="margin:0;overflow:hidden;user-select:none;touch-action:none;"> |
7456 <xsl:copy-of select="$result_svg"/> |
7461 <xsl:copy-of select="$result_svg"/> |