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

Namespace http://zvon.org/graphotron
Element name
Description The name of vertex. The text content of the name element provides the default value, which can be overriden with a value extracted from the source document using select attribute.
Attributes generate-position [ optional ]
The value of this attribute is either yes or no. If the value is yes, than an identifier is generated as a part of the vertex name.

select [ optional ]
The acceptable values are equivalent to the values of the select attribute of xsl:value-of element in XSLT Recommendation. If the value is a relative XPath, the relative path is based on the nodes selected by the match attribute of the parent vertex. If the select attribute is not specified or select attribute does not match anything the default value is used (the text content of the name element).
Parents vertex

XML Source

<source>
     <AAA/>
     <BBB>
          <CCC/>
          <CCC>c2</CCC>
          <CCC>c3</CCC>
          <XXX/>
     </BBB>
     <DDD/>
</source>
Graphotron Source

<graphotron version="1.0" xmlns="http://zvon.org/graphotron" >
     <vertex match="//*">
          <name generate-position="yes"/>
     </vertex>
     <vertex match="/*/*">
          <name select="name()" generate-position="yes"/>
     </vertex>
     <vertex match="/*/*/*">
          <name select=".">Default</name>
     </vertex>
     <vertex match="//XXX">
          <name>element X</name>
     </vertex>
     <edge match="//*" select="*"/>
</graphotron>

Display
Graph screenshot