svghmi/analyse_widget.xslt
changeset 3355 b16e9561a3c1
parent 3264 51645afeded9
child 3326 18d743e517b5
equal deleted inserted replaced
3354:819b0bdfa705 3355:b16e9561a3c1
   337 </xsl:text>
   337 </xsl:text>
   338       <xsl:text>arguments. Single variable path is index of selection.
   338       <xsl:text>arguments. Single variable path is index of selection.
   339 </xsl:text>
   339 </xsl:text>
   340       <xsl:text>
   340       <xsl:text>
   341 </xsl:text>
   341 </xsl:text>
   342       <xsl:text>It needs "text" (svg:text), "box" (svg:rect), "button" (svg:*),
   342       <xsl:text>It needs "text" (svg:text or svg:use referring to svg:text),
   343 </xsl:text>
   343 </xsl:text>
   344       <xsl:text>and "highlight" (svg:rect) labeled elements.
   344       <xsl:text>"box" (svg:rect), "button" (svg:*), and "highlight" (svg:rect)
       
   345 </xsl:text>
       
   346       <xsl:text>labeled elements.
   345 </xsl:text>
   347 </xsl:text>
   346       <xsl:text>
   348       <xsl:text>
   347 </xsl:text>
   349 </xsl:text>
   348       <xsl:text>When user clicks on "button", "text" is duplicated to display enties in the
   350       <xsl:text>When user clicks on "button", "text" is duplicated to display enties in the
   349 </xsl:text>
   351 </xsl:text>
   351 </xsl:text>
   353 </xsl:text>
   352       <xsl:text>texts. "highlight" is moved over pre-selected entry.
   354       <xsl:text>texts. "highlight" is moved over pre-selected entry.
   353 </xsl:text>
   355 </xsl:text>
   354       <xsl:text>
   356       <xsl:text>
   355 </xsl:text>
   357 </xsl:text>
   356       <xsl:text>When only one argument is given, and argment contains "#langs" then list of
   358       <xsl:text>When only one argument is given and argment contains "#langs" then list of
   357 </xsl:text>
   359 </xsl:text>
   358       <xsl:text>texts is automatically set to the list of human-readable languages supported
   360       <xsl:text>texts is automatically set to the human-readable list of supported
   359 </xsl:text>
   361 </xsl:text>
   360       <xsl:text>by this HMI. 
   362       <xsl:text>languages by this HMI. 
       
   363 </xsl:text>
       
   364       <xsl:text>
       
   365 </xsl:text>
       
   366       <xsl:text>If "text" labeled element is of type svg:use and refers to a svg:text 
       
   367 </xsl:text>
       
   368       <xsl:text>element part of a TextList widget, no argument is expected. In that case
       
   369 </xsl:text>
       
   370       <xsl:text>list of texts is set to TextList content.
   361 </xsl:text>
   371 </xsl:text>
   362     </longdesc>
   372     </longdesc>
   363     <shortdesc>
   373     <shortdesc>
   364       <xsl:text>Let user select text entry in a drop-down menu</xsl:text>
   374       <xsl:text>Let user select text entry in a drop-down menu</xsl:text>
   365     </shortdesc>
   375     </shortdesc>
   527   </xsl:template>
   537   </xsl:template>
   528   <xsl:template match="widget[@type='List']" mode="widget_desc">
   538   <xsl:template match="widget[@type='List']" mode="widget_desc">
   529     <type>
   539     <type>
   530       <xsl:value-of select="@type"/>
   540       <xsl:value-of select="@type"/>
   531     </type>
   541     </type>
       
   542     <longdesc>
       
   543       <xsl:text>List widget is a svg:group, list items are labeled elements
       
   544 </xsl:text>
       
   545       <xsl:text>in that group.
       
   546 </xsl:text>
       
   547       <xsl:text>
       
   548 </xsl:text>
       
   549       <xsl:text>To use a List, clone (svg:use) one of the items inside the widget that
       
   550 </xsl:text>
       
   551       <xsl:text>expects a List.
       
   552 </xsl:text>
       
   553       <xsl:text>
       
   554 </xsl:text>
       
   555       <xsl:text>Positions of items are relative to each other, and they must all be in the
       
   556 </xsl:text>
       
   557       <xsl:text>same place. In order to make editing easier it is therefore recommanded to
       
   558 </xsl:text>
       
   559       <xsl:text>make stacked clones of svg elements spread nearby the list.
       
   560 </xsl:text>
       
   561     </longdesc>
       
   562     <shortdesc>
       
   563       <xsl:text>A named list of named graphical elements</xsl:text>
       
   564     </shortdesc>
       
   565     <arg name="listname"/>
   532   </xsl:template>
   566   </xsl:template>
   533   <xsl:template match="widget[@type='Meter']" mode="widget_desc">
   567   <xsl:template match="widget[@type='Meter']" mode="widget_desc">
   534     <type>
   568     <type>
   535       <xsl:value-of select="@type"/>
   569       <xsl:value-of select="@type"/>
   536     </type>
   570     </type>
   631       <xsl:text>Show elements whose label match value.</xsl:text>
   665       <xsl:text>Show elements whose label match value.</xsl:text>
   632     </shortdesc>
   666     </shortdesc>
   633     <path name="value" accepts="HMI_INT,HMI_STRING">
   667     <path name="value" accepts="HMI_INT,HMI_STRING">
   634       <xsl:text>value to compare to labels</xsl:text>
   668       <xsl:text>value to compare to labels</xsl:text>
   635     </path>
   669     </path>
       
   670   </xsl:template>
       
   671   <xsl:template match="widget[@type='TextList']" mode="widget_desc">
       
   672     <type>
       
   673       <xsl:value-of select="@type"/>
       
   674     </type>
       
   675     <longdesc>
       
   676       <xsl:text>TextList widget is a svg:group, list items are labeled elements
       
   677 </xsl:text>
       
   678       <xsl:text>in that group.
       
   679 </xsl:text>
       
   680       <xsl:text>
       
   681 </xsl:text>
       
   682       <xsl:text>To use a TextList, clone (svg:use) one of the items inside the widget 
       
   683 </xsl:text>
       
   684       <xsl:text>that expects a TextList.
       
   685 </xsl:text>
       
   686       <xsl:text>
       
   687 </xsl:text>
       
   688       <xsl:text>In this list, (translated) text content is what matters. Nevertheless
       
   689 </xsl:text>
       
   690       <xsl:text>text style of the cloned item will be applied in client widget.
       
   691 </xsl:text>
       
   692     </longdesc>
       
   693     <shortdesc>
       
   694       <xsl:text>A named list of ordered texts </xsl:text>
       
   695     </shortdesc>
       
   696     <arg name="listname"/>
       
   697   </xsl:template>
       
   698   <xsl:template match="widget[@type='TextStyleList']" mode="widget_desc">
       
   699     <type>
       
   700       <xsl:value-of select="@type"/>
       
   701     </type>
       
   702     <longdesc>
       
   703       <xsl:text>TextStyleList widget is a svg:group, list items are labeled elements
       
   704 </xsl:text>
       
   705       <xsl:text>in that group.
       
   706 </xsl:text>
       
   707       <xsl:text>
       
   708 </xsl:text>
       
   709       <xsl:text>To use a TextStyleList, clone (svg:use) one of the items inside the widget 
       
   710 </xsl:text>
       
   711       <xsl:text>that expects a TextStyleList.
       
   712 </xsl:text>
       
   713       <xsl:text>
       
   714 </xsl:text>
       
   715       <xsl:text>In this list, only style matters. Text content is ignored.
       
   716 </xsl:text>
       
   717     </longdesc>
       
   718     <shortdesc>
       
   719       <xsl:text>A named list of named texts</xsl:text>
       
   720     </shortdesc>
       
   721     <arg name="listname"/>
   636   </xsl:template>
   722   </xsl:template>
   637   <xsl:template match="widget[@type='ToggleButton']" mode="widget_desc">
   723   <xsl:template match="widget[@type='ToggleButton']" mode="widget_desc">
   638     <type>
   724     <type>
   639       <xsl:value-of select="@type"/>
   725       <xsl:value-of select="@type"/>
   640     </type>
   726     </type>