svghmi/analyse_widget.xslt
changeset 3387 ecefd38d5c7d
parent 3362 abcdbef160e9
child 3410 eac5832a1489
equal deleted inserted replaced
3386:608f48ad3dfc 3387:ecefd38d5c7d
   469 </xsl:text>
   469 </xsl:text>
   470       <xsl:text>SVG sub-elements of "data" labeled element.
   470       <xsl:text>SVG sub-elements of "data" labeled element.
   471 </xsl:text>
   471 </xsl:text>
   472       <xsl:text>
   472       <xsl:text>
   473 </xsl:text>
   473 </xsl:text>
   474       <xsl:text>Documentation to be written. see svbghmi exemple.
   474       <xsl:text>Documentation to be written. see svghmi exemple.
   475 </xsl:text>
   475 </xsl:text>
   476     </longdesc>
   476     </longdesc>
   477     <shortdesc>
   477     <shortdesc>
   478       <xsl:text>Http POST variables, spread JSON back</xsl:text>
   478       <xsl:text>Http POST variables, spread JSON back</xsl:text>
   479     </shortdesc>
   479     </shortdesc>
   564     <shortdesc>
   564     <shortdesc>
   565       <xsl:text>A named list of named graphical elements</xsl:text>
   565       <xsl:text>A named list of named graphical elements</xsl:text>
   566     </shortdesc>
   566     </shortdesc>
   567     <arg name="listname"/>
   567     <arg name="listname"/>
   568   </xsl:template>
   568   </xsl:template>
       
   569   <xsl:template match="widget[@type='ListSwitch']" mode="widget_desc">
       
   570     <type>
       
   571       <xsl:value-of select="@type"/>
       
   572     </type>
       
   573     <longdesc>
       
   574       <xsl:text>ListSwitch widget displays one item of an HMI:List depending on value of
       
   575 </xsl:text>
       
   576       <xsl:text>given variable. Main element of the widget must be a clone of the list or
       
   577 </xsl:text>
       
   578       <xsl:text>of an item of that list.  
       
   579 </xsl:text>
       
   580       <xsl:text>
       
   581 </xsl:text>
       
   582       <xsl:text>Given variable's current value is compared to list items
       
   583 </xsl:text>
       
   584       <xsl:text>label. For exemple if given variable type
       
   585 </xsl:text>
       
   586       <xsl:text>is HMI_INT and value is 1, then item with label '1' will be displayed.
       
   587 </xsl:text>
       
   588       <xsl:text>If matching variable of type HMI_STRING, then no quotes are needed. 
       
   589 </xsl:text>
       
   590       <xsl:text>For exemple, 'hello' match HMI_STRING 'hello'.
       
   591 </xsl:text>
       
   592     </longdesc>
       
   593     <shortdesc>
       
   594       <xsl:text>Displays item of an HMI:List whose label matches value.</xsl:text>
       
   595     </shortdesc>
       
   596     <path name="value" accepts="HMI_INT,HMI_STRING">
       
   597       <xsl:text>value to compare to labels</xsl:text>
       
   598     </path>
       
   599   </xsl:template>
   569   <xsl:template match="widget[@type='Meter']" mode="widget_desc">
   600   <xsl:template match="widget[@type='Meter']" mode="widget_desc">
   570     <type>
   601     <type>
   571       <xsl:value-of select="@type"/>
   602       <xsl:value-of select="@type"/>
   572     </type>
   603     </type>
   573     <longdesc>
   604     <longdesc>
   685 </xsl:text>
   716 </xsl:text>
   686       <xsl:text>'"hello"' or '"hello"#another comment' match HMI_STRING 'hello'.
   717       <xsl:text>'"hello"' or '"hello"#another comment' match HMI_STRING 'hello'.
   687 </xsl:text>
   718 </xsl:text>
   688     </longdesc>
   719     </longdesc>
   689     <shortdesc>
   720     <shortdesc>
   690       <xsl:text>Show elements whose label match value.</xsl:text>
   721       <xsl:text>Show elements whose label matches value.</xsl:text>
   691     </shortdesc>
   722     </shortdesc>
   692     <path name="value" accepts="HMI_INT,HMI_STRING">
   723     <path name="value" accepts="HMI_INT,HMI_STRING">
   693       <xsl:text>value to compare to labels</xsl:text>
   724       <xsl:text>value to compare to labels</xsl:text>
   694     </path>
   725     </path>
   695   </xsl:template>
   726   </xsl:template>