ZVON > Graphotron > Graphotron Tutorial
>> Page 4 << | Prev | Next | Contents

Edges are drawn by edge element. The match attribute specifies the start point, the select attribute the end point of the edge. If the select attribute contains a relative XPath, than the base nodes are the starting ones (as determined by the match attribute).
XML Source

<aaa>
     <bbb/>
     <ccc/>
</aaa>
Graphotron Source

<graphotron xmlns="http://zvon.org/graphotron" >
     <vertex match="//*">
          <name select="name()"/>
     </vertex>
     <edge match="//*" select="//*"/>
</graphotron>

Graph screenshot