| ZVON > Graphotron > Graphotron Reference |
| Intro / Search / ZVON |
| | >> graphotron << | daVinci | vcg | dot | tutorial | download | about | |
| Namespace | http://zvon.org/graphotron |
|---|---|
| Element | graphotron |
| Description | The document element. |
| Attributes | version [ optional ] Version of graphotron. If the attribute is absent, version 1.0 is assumed. |
| Children | edge, global-settings, key, param, variable, vertex |
| Parents | This is the document element. |
|
XML Source
<source> <AAA/> <BBB> <aaa/> <bbb/> <ccc/> </BBB> <CCC/> <DDD/> <EEE/> <FFF/> <GGG/> <HHH/> </source> |
Graphotron Source
<graphotron version="1.0" xmlns="http://zvon.org/graphotron" > <vertex match="//*"> <name select="name()"/> </vertex> <vertex match="/*"> <name>root</name> </vertex> <edge match="/*/*" select="following-sibling::*[1]"/> <edge match="/*/*[last()]" select="/*/*[1]"/> <edge match="/*/*[position() mod 2 = 0]" select="following-sibling::*[3]"/> <edge match="/*/*[position() mod 2 = 0]" select="preceding-sibling::*[2]"/> <edge match="//*" select="*"/> </graphotron> |
Display