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

Namespace http://zvon.org/graphotron
Element any:vertex-property
Description If the element does not come from supported namespace, it is ignored. If it comes from a supported namespace, its local-name is used as a parameter name of the given application. Value of the application parameter can be specified either by its content or it can be extracted from the source document using select attribute. If the select attribute is used, then text data are used as a default value if the select attribute does not return any match.
Attributes select [ optional ]
An XPath setting the value of a vertex property. It can use keys, variables, and params. If a relative XPath is specified it is taken relative to the match attribute of the parent vertex element.
Parents vertex
Related: Dot reference
daVinci reference
VCG reference

XML Source

<source>
     <AAA>
          <ellipse/>
          <triangle/>
          <rhomb/>
     </AAA>
     <CCC/>
     <DDD/>
</source>
Graphotron Source

<graphotron version="1.0" xmlns="http://zvon.org/graphotron" xmlns:vcg="http://zvon.org/graphotron/vcg" >
     <vertex match="//*">
          <name select="name()"/>
     </vertex>
     <vertex match="/*/*">
          <name select="name()"/>
          <vcg:color>blue</vcg:color>
          <vcg:textcolor>yellow</vcg:textcolor>
          <vcg:bordercolor>red</vcg:bordercolor>
     </vertex>
     <vertex match="//AAA/*">
          <name select="name()"/>
          <vcg:shape select="name()"/>
     </vertex>
     <edge match="//*" select="*"/>
</graphotron>

Display
Graph screenshot