svghmi/gen_index_xhtml.xslt
branchsvghmi
changeset 3156 76c0c0a524c9
parent 3155 99ce78ddd353
child 3161 edd558965f58
equal deleted inserted replaced
3155:99ce78ddd353 3156:76c0c0a524c9
    17     <xsl:apply-templates mode="index" select="$hmitree"/>
    17     <xsl:apply-templates mode="index" select="$hmitree"/>
    18   </xsl:variable>
    18   </xsl:variable>
    19   <xsl:variable name="indexed_hmitree" select="exsl:node-set($_indexed_hmitree)"/>
    19   <xsl:variable name="indexed_hmitree" select="exsl:node-set($_indexed_hmitree)"/>
    20   <preamble:hmi-tree/>
    20   <preamble:hmi-tree/>
    21   <xsl:template match="preamble:hmi-tree">
    21   <xsl:template match="preamble:hmi-tree">
       
    22     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
    22     <xsl:text>
    23     <xsl:text>
    23 </xsl:text>
    24 </xsl:text>
    24     <xsl:text>/* </xsl:text>
    25     <xsl:text>/* </xsl:text>
    25     <xsl:value-of select="local-name()"/>
    26     <xsl:value-of select="local-name()"/>
    26     <xsl:text> */
    27     <xsl:text> */
    59 </xsl:text>
    60 </xsl:text>
    60     <xsl:text>
    61     <xsl:text>
    61 </xsl:text>
    62 </xsl:text>
    62     <xsl:text>
    63     <xsl:text>
    63 </xsl:text>
    64 </xsl:text>
       
    65     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
    64   </xsl:template>
    66   </xsl:template>
    65   <xsl:template mode="index" match="*">
    67   <xsl:template mode="index" match="*">
    66     <xsl:param name="index" select="0"/>
    68     <xsl:param name="index" select="0"/>
    67     <xsl:param name="parentpath" select="''"/>
    69     <xsl:param name="parentpath" select="''"/>
    68     <xsl:variable name="content">
    70     <xsl:variable name="content">
   276       </xsl:with-param>
   278       </xsl:with-param>
   277     </xsl:apply-templates>
   279     </xsl:apply-templates>
   278   </xsl:template>
   280   </xsl:template>
   279   <debug:hmi-tree/>
   281   <debug:hmi-tree/>
   280   <xsl:template match="debug:hmi-tree">
   282   <xsl:template match="debug:hmi-tree">
       
   283     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
   281     <xsl:text>
   284     <xsl:text>
   282 </xsl:text>
   285 </xsl:text>
   283     <xsl:text>/* </xsl:text>
   286     <xsl:text>/* </xsl:text>
   284     <xsl:value-of select="local-name()"/>
   287     <xsl:value-of select="local-name()"/>
   285     <xsl:text> */
   288     <xsl:text> */
   300 </xsl:text>
   303 </xsl:text>
   301     <xsl:copy-of select="_parsed_widgets"/>
   304     <xsl:copy-of select="_parsed_widgets"/>
   302     <xsl:apply-templates mode="testtree" select="$parsed_widgets"/>
   305     <xsl:apply-templates mode="testtree" select="$parsed_widgets"/>
   303     <xsl:text>
   306     <xsl:text>
   304 </xsl:text>
   307 </xsl:text>
       
   308     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
   305   </xsl:template>
   309   </xsl:template>
   306   <xsl:variable name="geometry" select="ns:GetSVGGeometry()"/>
   310   <xsl:variable name="geometry" select="ns:GetSVGGeometry()"/>
   307   <debug:geometry/>
   311   <debug:geometry/>
   308   <xsl:template match="debug:geometry">
   312   <xsl:template match="debug:geometry">
       
   313     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
   309     <xsl:text>
   314     <xsl:text>
   310 </xsl:text>
   315 </xsl:text>
   311     <xsl:text>/* </xsl:text>
   316     <xsl:text>/* </xsl:text>
   312     <xsl:value-of select="local-name()"/>
   317     <xsl:value-of select="local-name()"/>
   313     <xsl:text> */
   318     <xsl:text> */
   330       <xsl:text>
   335       <xsl:text>
   331 </xsl:text>
   336 </xsl:text>
   332     </xsl:for-each>
   337     </xsl:for-each>
   333     <xsl:text>
   338     <xsl:text>
   334 </xsl:text>
   339 </xsl:text>
       
   340     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
   335   </xsl:template>
   341   </xsl:template>
   336   <func:function name="func:intersect_1d">
   342   <func:function name="func:intersect_1d">
   337     <xsl:param name="a0"/>
   343     <xsl:param name="a0"/>
   338     <xsl:param name="a1"/>
   344     <xsl:param name="a1"/>
   339     <xsl:param name="b0"/>
   345     <xsl:param name="b0"/>
   405       </xsl:otherwise>
   411       </xsl:otherwise>
   406     </xsl:choose>
   412     </xsl:choose>
   407   </xsl:variable>
   413   </xsl:variable>
   408   <preamble:default-page/>
   414   <preamble:default-page/>
   409   <xsl:template match="preamble:default-page">
   415   <xsl:template match="preamble:default-page">
       
   416     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
   410     <xsl:text>
   417     <xsl:text>
   411 </xsl:text>
   418 </xsl:text>
   412     <xsl:text>/* </xsl:text>
   419     <xsl:text>/* </xsl:text>
   413     <xsl:value-of select="local-name()"/>
   420     <xsl:value-of select="local-name()"/>
   414     <xsl:text> */
   421     <xsl:text> */
   421     <xsl:value-of select="$default_page"/>
   428     <xsl:value-of select="$default_page"/>
   422     <xsl:text>";
   429     <xsl:text>";
   423 </xsl:text>
   430 </xsl:text>
   424     <xsl:text>
   431     <xsl:text>
   425 </xsl:text>
   432 </xsl:text>
       
   433     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
   426   </xsl:template>
   434   </xsl:template>
   427   <xsl:variable name="keypads_descs" select="$parsed_widgets/widget[@type = 'Keypad']"/>
   435   <xsl:variable name="keypads_descs" select="$parsed_widgets/widget[@type = 'Keypad']"/>
   428   <xsl:variable name="keypads" select="$hmi_elements[@id = $keypads_descs/@id]"/>
   436   <xsl:variable name="keypads" select="$hmi_elements[@id = $keypads_descs/@id]"/>
   429   <func:function name="func:refered_elements">
   437   <func:function name="func:refered_elements">
   430     <xsl:param name="elems"/>
   438     <xsl:param name="elems"/>
   480   </func:function>
   488   </func:function>
   481   <xsl:variable name="_detachable_elements" select="func:detachable_elements($hmi_pages | $keypads)"/>
   489   <xsl:variable name="_detachable_elements" select="func:detachable_elements($hmi_pages | $keypads)"/>
   482   <xsl:variable name="detachable_elements" select="$_detachable_elements[not(ancestor::*/@id = $_detachable_elements/@id)]"/>
   490   <xsl:variable name="detachable_elements" select="$_detachable_elements[not(ancestor::*/@id = $_detachable_elements/@id)]"/>
   483   <declarations:detachable-elements/>
   491   <declarations:detachable-elements/>
   484   <xsl:template match="declarations:detachable-elements">
   492   <xsl:template match="declarations:detachable-elements">
       
   493     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
   485     <xsl:text>
   494     <xsl:text>
   486 </xsl:text>
   495 </xsl:text>
   487     <xsl:text>/* </xsl:text>
   496     <xsl:text>/* </xsl:text>
   488     <xsl:value-of select="local-name()"/>
   497     <xsl:value-of select="local-name()"/>
   489     <xsl:text> */
   498     <xsl:text> */
   510     </xsl:for-each>
   519     </xsl:for-each>
   511     <xsl:text>}
   520     <xsl:text>}
   512 </xsl:text>
   521 </xsl:text>
   513     <xsl:text>
   522     <xsl:text>
   514 </xsl:text>
   523 </xsl:text>
       
   524     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
   515   </xsl:template>
   525   </xsl:template>
   516   <xsl:variable name="forEach_widgets_ids" select="$parsed_widgets/widget[@type = 'ForEach']/@id"/>
   526   <xsl:variable name="forEach_widgets_ids" select="$parsed_widgets/widget[@type = 'ForEach']/@id"/>
   517   <xsl:variable name="forEach_widgets" select="$hmi_widgets[@id = $forEach_widgets_ids]"/>
   527   <xsl:variable name="forEach_widgets" select="$hmi_widgets[@id = $forEach_widgets_ids]"/>
   518   <xsl:variable name="in_forEach_widget_ids" select="func:refered_elements($forEach_widgets)[not(@id = $forEach_widgets_ids)]/@id"/>
   528   <xsl:variable name="in_forEach_widget_ids" select="func:refered_elements($forEach_widgets)[not(@id = $forEach_widgets_ids)]/@id"/>
   519   <xsl:template mode="page_desc" match="svg:*">
   529   <xsl:template mode="page_desc" match="svg:*">
   625     <xsl:text>
   635     <xsl:text>
   626 </xsl:text>
   636 </xsl:text>
   627   </xsl:template>
   637   </xsl:template>
   628   <definitions:page-desc/>
   638   <definitions:page-desc/>
   629   <xsl:template match="definitions:page-desc">
   639   <xsl:template match="definitions:page-desc">
       
   640     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
   630     <xsl:text>
   641     <xsl:text>
   631 </xsl:text>
   642 </xsl:text>
   632     <xsl:text>/* </xsl:text>
   643     <xsl:text>/* </xsl:text>
   633     <xsl:value-of select="local-name()"/>
   644     <xsl:value-of select="local-name()"/>
   634     <xsl:text> */
   645     <xsl:text> */
   642     <xsl:apply-templates mode="page_desc" select="$hmi_pages"/>
   653     <xsl:apply-templates mode="page_desc" select="$hmi_pages"/>
   643     <xsl:text>}
   654     <xsl:text>}
   644 </xsl:text>
   655 </xsl:text>
   645     <xsl:text>
   656     <xsl:text>
   646 </xsl:text>
   657 </xsl:text>
       
   658     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
   647   </xsl:template>
   659   </xsl:template>
   648   <xsl:template mode="per_page_widget_template" match="*"/>
   660   <xsl:template mode="per_page_widget_template" match="*"/>
   649   <debug:detachable-pages/>
   661   <debug:detachable-pages/>
   650   <xsl:template match="debug:detachable-pages">
   662   <xsl:template match="debug:detachable-pages">
       
   663     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
   651     <xsl:text>
   664     <xsl:text>
   652 </xsl:text>
   665 </xsl:text>
   653     <xsl:text>/* </xsl:text>
   666     <xsl:text>/* </xsl:text>
   654     <xsl:value-of select="local-name()"/>
   667     <xsl:value-of select="local-name()"/>
   655     <xsl:text> */
   668     <xsl:text> */
   674       <xsl:text>
   687       <xsl:text>
   675 </xsl:text>
   688 </xsl:text>
   676     </xsl:for-each>
   689     </xsl:for-each>
   677     <xsl:text>
   690     <xsl:text>
   678 </xsl:text>
   691 </xsl:text>
       
   692     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
   679   </xsl:template>
   693   </xsl:template>
   680   <xsl:template xmlns="http://www.w3.org/2000/svg" mode="inline_svg" match="@*">
   694   <xsl:template xmlns="http://www.w3.org/2000/svg" mode="inline_svg" match="@*">
   681     <xsl:copy/>
   695     <xsl:copy/>
   682   </xsl:template>
   696   </xsl:template>
   683   <xsl:template mode="inline_svg" match="node()">
   697   <xsl:template mode="inline_svg" match="node()">
   893     <xsl:apply-templates mode="inline_svg" select="/"/>
   907     <xsl:apply-templates mode="inline_svg" select="/"/>
   894   </xsl:variable>
   908   </xsl:variable>
   895   <xsl:variable name="result_svg_ns" select="exsl:node-set($result_svg)"/>
   909   <xsl:variable name="result_svg_ns" select="exsl:node-set($result_svg)"/>
   896   <preamble:inline-svg/>
   910   <preamble:inline-svg/>
   897   <xsl:template match="preamble:inline-svg">
   911   <xsl:template match="preamble:inline-svg">
       
   912     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
   898     <xsl:text>
   913     <xsl:text>
   899 </xsl:text>
   914 </xsl:text>
   900     <xsl:text>/* </xsl:text>
   915     <xsl:text>/* </xsl:text>
   901     <xsl:value-of select="local-name()"/>
   916     <xsl:value-of select="local-name()"/>
   902     <xsl:text> */
   917     <xsl:text> */
   909     <xsl:value-of select="$svg/@id"/>
   924     <xsl:value-of select="$svg/@id"/>
   910     <xsl:text>");
   925     <xsl:text>");
   911 </xsl:text>
   926 </xsl:text>
   912     <xsl:text>
   927     <xsl:text>
   913 </xsl:text>
   928 </xsl:text>
       
   929     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
   914   </xsl:template>
   930   </xsl:template>
   915   <debug:clone-unlinking/>
   931   <debug:clone-unlinking/>
   916   <xsl:template match="debug:clone-unlinking">
   932   <xsl:template match="debug:clone-unlinking">
       
   933     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
   917     <xsl:text>
   934     <xsl:text>
   918 </xsl:text>
   935 </xsl:text>
   919     <xsl:text>/* </xsl:text>
   936     <xsl:text>/* </xsl:text>
   920     <xsl:value-of select="local-name()"/>
   937     <xsl:value-of select="local-name()"/>
   921     <xsl:text> */
   938     <xsl:text> */
   938       <xsl:text>
   955       <xsl:text>
   939 </xsl:text>
   956 </xsl:text>
   940     </xsl:for-each>
   957     </xsl:for-each>
   941     <xsl:text>
   958     <xsl:text>
   942 </xsl:text>
   959 </xsl:text>
       
   960     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
   943   </xsl:template>
   961   </xsl:template>
   944   <xsl:template mode="extract_i18n" match="svg:tspan">
   962   <xsl:template mode="extract_i18n" match="svg:tspan">
   945     <xsl:if test="string-length(.) &gt; 0">
   963     <xsl:if test="string-length(.) &gt; 0">
   946       <line>
   964       <line>
   947         <xsl:value-of select="."/>
   965         <xsl:value-of select="."/>
   963   <xsl:variable name="translatable_strings">
   981   <xsl:variable name="translatable_strings">
   964     <xsl:apply-templates mode="extract_i18n" select="$translatable_texts"/>
   982     <xsl:apply-templates mode="extract_i18n" select="$translatable_texts"/>
   965   </xsl:variable>
   983   </xsl:variable>
   966   <preamble:i18n/>
   984   <preamble:i18n/>
   967   <xsl:template match="preamble:i18n">
   985   <xsl:template match="preamble:i18n">
       
   986     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
   968     <xsl:text>
   987     <xsl:text>
   969 </xsl:text>
   988 </xsl:text>
   970     <xsl:text>/* </xsl:text>
   989     <xsl:text>/* </xsl:text>
   971     <xsl:value-of select="local-name()"/>
   990     <xsl:value-of select="local-name()"/>
   972     <xsl:text> */
   991     <xsl:text> */
  1025     </xsl:for-each>
  1044     </xsl:for-each>
  1026     <xsl:text>]
  1045     <xsl:text>]
  1027 </xsl:text>
  1046 </xsl:text>
  1028     <xsl:text>
  1047     <xsl:text>
  1029 </xsl:text>
  1048 </xsl:text>
       
  1049     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
  1030   </xsl:template>
  1050   </xsl:template>
  1031   <xsl:template mode="hmi_widgets" match="svg:*">
  1051   <xsl:template mode="hmi_widgets" match="svg:*">
  1032     <xsl:variable name="widget" select="func:widget(@id)"/>
  1052     <xsl:variable name="widget" select="func:widget(@id)"/>
  1033     <xsl:variable name="eltid" select="@id"/>
  1053     <xsl:variable name="eltid" select="@id"/>
  1034     <xsl:variable name="args">
  1054     <xsl:variable name="args">
  1127     <xsl:text>
  1147     <xsl:text>
  1128 </xsl:text>
  1148 </xsl:text>
  1129   </xsl:template>
  1149   </xsl:template>
  1130   <preamble:local-variable-indexes/>
  1150   <preamble:local-variable-indexes/>
  1131   <xsl:template match="preamble:local-variable-indexes">
  1151   <xsl:template match="preamble:local-variable-indexes">
       
  1152     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
  1132     <xsl:text>
  1153     <xsl:text>
  1133 </xsl:text>
  1154 </xsl:text>
  1134     <xsl:text>/* </xsl:text>
  1155     <xsl:text>/* </xsl:text>
  1135     <xsl:value-of select="local-name()"/>
  1156     <xsl:value-of select="local-name()"/>
  1136     <xsl:text> */
  1157     <xsl:text> */
  1270 </xsl:text>
  1291 </xsl:text>
  1271     <xsl:text>}
  1292     <xsl:text>}
  1272 </xsl:text>
  1293 </xsl:text>
  1273     <xsl:text>
  1294     <xsl:text>
  1274 </xsl:text>
  1295 </xsl:text>
       
  1296     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
  1275   </xsl:template>
  1297   </xsl:template>
  1276   <preamble:widget-base-class/>
  1298   <preamble:widget-base-class/>
  1277   <xsl:template match="preamble:widget-base-class">
  1299   <xsl:template match="preamble:widget-base-class">
       
  1300     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
  1278     <xsl:text>
  1301     <xsl:text>
  1279 </xsl:text>
  1302 </xsl:text>
  1280     <xsl:text>/* </xsl:text>
  1303     <xsl:text>/* </xsl:text>
  1281     <xsl:value-of select="local-name()"/>
  1304     <xsl:value-of select="local-name()"/>
  1282     <xsl:text> */
  1305     <xsl:text> */
  1667 </xsl:text>
  1690 </xsl:text>
  1668     <xsl:text>}
  1691     <xsl:text>}
  1669 </xsl:text>
  1692 </xsl:text>
  1670     <xsl:text>
  1693     <xsl:text>
  1671 </xsl:text>
  1694 </xsl:text>
       
  1695     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
  1672   </xsl:template>
  1696   </xsl:template>
  1673   <xsl:variable name="excluded_types" select="str:split('Page VarInit VarInitPersistent')"/>
  1697   <xsl:variable name="excluded_types" select="str:split('Page VarInit VarInitPersistent')"/>
  1674   <xsl:key name="TypesKey" match="widget" use="@type"/>
  1698   <xsl:key name="TypesKey" match="widget" use="@type"/>
  1675   <declarations:hmi-classes/>
  1699   <declarations:hmi-classes/>
  1676   <xsl:template match="declarations:hmi-classes">
  1700   <xsl:template match="declarations:hmi-classes">
       
  1701     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
  1677     <xsl:text>
  1702     <xsl:text>
  1678 </xsl:text>
  1703 </xsl:text>
  1679     <xsl:text>/* </xsl:text>
  1704     <xsl:text>/* </xsl:text>
  1680     <xsl:value-of select="local-name()"/>
  1705     <xsl:value-of select="local-name()"/>
  1681     <xsl:text> */
  1706     <xsl:text> */
  1684 </xsl:text>
  1709 </xsl:text>
  1685     <xsl:variable name="used_widget_types" select="$parsed_widgets/widget[&#10;                                    generate-id() = generate-id(key('TypesKey', @type)) and &#10;                                    not(@type = $excluded_types)]"/>
  1710     <xsl:variable name="used_widget_types" select="$parsed_widgets/widget[&#10;                                    generate-id() = generate-id(key('TypesKey', @type)) and &#10;                                    not(@type = $excluded_types)]"/>
  1686     <xsl:apply-templates mode="widget_class" select="$used_widget_types"/>
  1711     <xsl:apply-templates mode="widget_class" select="$used_widget_types"/>
  1687     <xsl:text>
  1712     <xsl:text>
  1688 </xsl:text>
  1713 </xsl:text>
       
  1714     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
  1689   </xsl:template>
  1715   </xsl:template>
  1690   <xsl:template mode="widget_class" match="widget">
  1716   <xsl:template mode="widget_class" match="widget">
  1691     <xsl:text>class </xsl:text>
  1717     <xsl:text>class </xsl:text>
  1692     <xsl:value-of select="@type"/>
  1718     <xsl:value-of select="@type"/>
  1693     <xsl:text>Widget extends Widget{
  1719     <xsl:text>Widget extends Widget{
  1701   </xsl:template>
  1727   </xsl:template>
  1702   <xsl:variable name="included_ids" select="$parsed_widgets/widget[not(@type = $excluded_types) and not(@id = $discardable_elements/@id)]/@id"/>
  1728   <xsl:variable name="included_ids" select="$parsed_widgets/widget[not(@type = $excluded_types) and not(@id = $discardable_elements/@id)]/@id"/>
  1703   <xsl:variable name="hmi_widgets" select="$hmi_elements[@id = $included_ids]"/>
  1729   <xsl:variable name="hmi_widgets" select="$hmi_elements[@id = $included_ids]"/>
  1704   <declarations:hmi-elements/>
  1730   <declarations:hmi-elements/>
  1705   <xsl:template match="declarations:hmi-elements">
  1731   <xsl:template match="declarations:hmi-elements">
       
  1732     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
  1706     <xsl:text>
  1733     <xsl:text>
  1707 </xsl:text>
  1734 </xsl:text>
  1708     <xsl:text>/* </xsl:text>
  1735     <xsl:text>/* </xsl:text>
  1709     <xsl:value-of select="local-name()"/>
  1736     <xsl:value-of select="local-name()"/>
  1710     <xsl:text> */
  1737     <xsl:text> */
  1716     <xsl:apply-templates mode="hmi_widgets" select="$hmi_widgets"/>
  1743     <xsl:apply-templates mode="hmi_widgets" select="$hmi_widgets"/>
  1717     <xsl:text>}
  1744     <xsl:text>}
  1718 </xsl:text>
  1745 </xsl:text>
  1719     <xsl:text>
  1746     <xsl:text>
  1720 </xsl:text>
  1747 </xsl:text>
       
  1748     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
  1721   </xsl:template>
  1749   </xsl:template>
  1722   <xsl:template name="defs_by_labels">
  1750   <xsl:template name="defs_by_labels">
  1723     <xsl:param name="labels" select="''"/>
  1751     <xsl:param name="labels" select="''"/>
  1724     <xsl:param name="mandatory" select="'yes'"/>
  1752     <xsl:param name="mandatory" select="'yes'"/>
  1725     <xsl:param name="subelements" select="/.."/>
  1753     <xsl:param name="subelements" select="/.."/>
  2965 </xsl:text>
  2993 </xsl:text>
  2966     </xsl:if>
  2994     </xsl:if>
  2967   </xsl:template>
  2995   </xsl:template>
  2968   <preamble:display/>
  2996   <preamble:display/>
  2969   <xsl:template match="preamble:display">
  2997   <xsl:template match="preamble:display">
       
  2998     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
  2970     <xsl:text>
  2999     <xsl:text>
  2971 </xsl:text>
  3000 </xsl:text>
  2972     <xsl:text>/* </xsl:text>
  3001     <xsl:text>/* </xsl:text>
  2973     <xsl:value-of select="local-name()"/>
  3002     <xsl:value-of select="local-name()"/>
  2974     <xsl:text> */
  3003     <xsl:text> */
  3441 </xsl:text>
  3470 </xsl:text>
  3442     <xsl:text>}(); // eslint-disable-line    
  3471     <xsl:text>}(); // eslint-disable-line    
  3443 </xsl:text>
  3472 </xsl:text>
  3444     <xsl:text>
  3473     <xsl:text>
  3445 </xsl:text>
  3474 </xsl:text>
       
  3475     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
  3446   </xsl:template>
  3476   </xsl:template>
  3447   <xsl:template mode="widget_class" match="widget[@type='DropDown']">
  3477   <xsl:template mode="widget_class" match="widget[@type='DropDown']">
  3448     <xsl:text>    function numb_event(e) {
  3478     <xsl:text>    function numb_event(e) {
  3449 </xsl:text>
  3479 </xsl:text>
  3450     <xsl:text>        e.stopPropagation();
  3480     <xsl:text>        e.stopPropagation();
  5151       </xsl:if>
  5181       </xsl:if>
  5152     </xsl:if>
  5182     </xsl:if>
  5153   </xsl:template>
  5183   </xsl:template>
  5154   <declarations:jump/>
  5184   <declarations:jump/>
  5155   <xsl:template match="declarations:jump">
  5185   <xsl:template match="declarations:jump">
       
  5186     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
  5156     <xsl:text>
  5187     <xsl:text>
  5157 </xsl:text>
  5188 </xsl:text>
  5158     <xsl:text>/* </xsl:text>
  5189     <xsl:text>/* </xsl:text>
  5159     <xsl:value-of select="local-name()"/>
  5190     <xsl:value-of select="local-name()"/>
  5160     <xsl:text> */
  5191     <xsl:text> */
  5177 </xsl:text>
  5208 </xsl:text>
  5178     <xsl:text>
  5209     <xsl:text>
  5179 </xsl:text>
  5210 </xsl:text>
  5180     <xsl:text>
  5211     <xsl:text>
  5181 </xsl:text>
  5212 </xsl:text>
       
  5213     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
  5182   </xsl:template>
  5214   </xsl:template>
  5183   <declarations:keypad/>
  5215   <declarations:keypad/>
  5184   <xsl:template match="declarations:keypad">
  5216   <xsl:template match="declarations:keypad">
       
  5217     <xsl:variable name="_unused" select="ns:ProgressStart(name())"/>
  5185     <xsl:text>
  5218     <xsl:text>
  5186 </xsl:text>
  5219 </xsl:text>
  5187     <xsl:text>/* </xsl:text>
  5220     <xsl:text>/* </xsl:text>
  5188     <xsl:value-of select="local-name()"/>
  5221     <xsl:value-of select="local-name()"/>
  5189     <xsl:text> */
  5222     <xsl:text> */
  5212     </xsl:for-each>
  5245     </xsl:for-each>
  5213     <xsl:text>}
  5246     <xsl:text>}
  5214 </xsl:text>
  5247 </xsl:text>
  5215     <xsl:text>
  5248     <xsl:text>
  5216 </xsl:text>
  5249 </xsl:text>
       
  5250     <xsl:variable name="__unused" select="ns:ProgressEnd(name())"/>
  5217   </xsl:template>
  5251   </xsl:template>
  5218   <xsl:template mode="widget_class" match="widget[@type='Keypad']">
  5252   <xsl:template mode="widget_class" match="widget[@type='Keypad']">
  5219     <xsl:text>class KeypadWidget extends Widget{
  5253     <xsl:text>class KeypadWidget extends Widget{
  5220 </xsl:text>
  5254 </xsl:text>
  5221     <xsl:text>
  5255     <xsl:text>