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

Namespace http://zvon.org/graphotron
Element any:global-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 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 global property. It can use keys, variables, and params. If a relative XPath is specified it is taken relative to the "/".
Parents global-settings
Related: Dot reference
daVinci reference
VCG reference

XML Source

<source color="yellow">
     <AAA/>
     <BBB/>
     <CCC/>
     <DDD/>
     <EEE/>
     <FFF/>
     <GGG/>
     <HHH/>
</source>
Graphotron Source

<graphotron version="1.0" xmlns="http://zvon.org/graphotron" xmlns:vcg="http://zvon.org/graphotron/vcg" >
     <global-settings>
          <vcg:color select="/*/@color"/>
          <vcg:manhattan_edges>yes</vcg:manhattan_edges>
          <vcg:view>pfish</vcg:view>
     </global-settings>
     <vertex match="//*">
          <name select="name()"/>
     </vertex>
     <edge match="//*" select="//*"/>
</graphotron>

Display
Graph screenshot