svghmi/gen_index_xhtml.xslt
branchsvghmi
changeset 3210 0ddefd20ca2b
parent 3206 4fd7bd10e606
child 3211 938b55abe946
equal deleted inserted replaced
3209:a5bca0a5eaf5 3210:0ddefd20ca2b
     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>
  1711 </xsl:text>
  1711 </xsl:text>
  1712     <xsl:text>
  1712     <xsl:text>
  1713 </xsl:text>
  1713 </xsl:text>
  1714   </xsl:template>
  1714   </xsl:template>
  1715   <xsl:variable name="excluded_types" select="str:split('Page VarInit VarInitPersistent')"/>
  1715   <xsl:variable name="excluded_types" select="str:split('Page VarInit VarInitPersistent')"/>
  1716   <xsl:key use="@type" name="TypesKey" match="widget"/>
  1716   <xsl:key name="TypesKey" match="widget" use="@type"/>
  1717   <declarations:hmi-classes/>
  1717   <declarations:hmi-classes/>
  1718   <xsl:template match="declarations:hmi-classes">
  1718   <xsl:template match="declarations:hmi-classes">
  1719     <xsl:text>
  1719     <xsl:text>
  1720 </xsl:text>
  1720 </xsl:text>
  1721     <xsl:text>/* </xsl:text>
  1721     <xsl:text>/* </xsl:text>
  6856       <xsl:text>Made with SVGHMI. https://beremiz.org</xsl:text>
  6856       <xsl:text>Made with SVGHMI. https://beremiz.org</xsl:text>
  6857     </xsl:comment>
  6857     </xsl:comment>
  6858     <xsl:comment>
  6858     <xsl:comment>
  6859       <xsl:apply-templates select="document('')/*/debug:*"/>
  6859       <xsl:apply-templates select="document('')/*/debug:*"/>
  6860     </xsl:comment>
  6860     </xsl:comment>
  6861     <html xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1999/xhtml">
  6861     <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  6862       <head/>
  6862       <head/>
  6863       <body style="margin:0;overflow:hidden;user-select:none;touch-action:none;">
  6863       <body style="margin:0;overflow:hidden;user-select:none;touch-action:none;">
  6864         <xsl:copy-of select="$result_svg"/>
  6864         <xsl:copy-of select="$result_svg"/>
  6865         <script>
  6865         <script>
  6866           <xsl:text>
  6866           <xsl:text>