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

If an edge is matched several times, all edges are drawn.
XML Source

<aaa>
     <bbb/>
     <ccc/>
     <ddd/>
     <eee/>
     <fff/>
     <ggg/>
</aaa>
Graphotron Source

<graphotron xmlns="http://zvon.org/graphotron" >
     <vertex match="/*/*">
          <name select="name()"/>
     </vertex>
     <edge match="/*/*" select="following-sibling::*[1]"/>
     <edge match="/*/*" select="following-sibling::*[1]"/>
     <edge match="/*/*" select="following-sibling::*[1]"/>
     <edge match="/*/*[last()]" select="preceding-sibling::*[last()]"/>
</graphotron>

Graph screenshot