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

When a node is matched by several vertex elements, the last match is used
XML Source

<aaa>
     <bbbbb/>
     <ccccc/>
     <ddd>
          <eeeee/>
          <fff/>
     </ddd>
</aaa>
Graphotron Source

<graphotron xmlns="http://zvon.org/graphotron" >
     <vertex match="//*">
          <name select="name()"/>
     </vertex>
     <vertex match="//*[string-length(name())=3]">
          <name select="concat('3_',name(),'_3')"/>
     </vertex>
     <vertex match="/*">
          <name select="concat('root_',name())"/>
     </vertex>
</graphotron>

Graph screenshot