ZVON > Graphotron > Graphotron Reference
| >> graphotron << | daVinci | vcg | dot | tutorial | download | about |

Namespace http://zvon.org/graphotron
Element param
Description Defines a global variable which can be used in all XPath expressions (inside select, match, and value-of attributes). Its value can be changed by passing an parameter to the compiled program. Its usage is equivalent to xsl:param in XSLT Recommendation.
Attributes name [ required ]
Name of the variable. There must not be any other variable or param with the same name. The value of the name attribute is a QName.
Children script
Parents graphotron

XML Source

<source>
     <Peter/>
     <Ann/>
     <John/>
</source>
Graphotron Source

<graphotron version="1.0" xmlns="http://zvon.org/graphotron" >
     <param name="xxx">Hello</param>
     <vertex match="/*">
          <name select="$xxx"/>
     </vertex>
     <vertex match="/*/*">
          <name select="name()"/>
     </vertex>
     <edge match="//*" select="*"/>
</graphotron>

Display
Graph screenshot