| ZVON > Graphotron > Graphotron Reference |
| Intro / Search / ZVON |
| | >> graphotron << | daVinci | vcg | dot | tutorial | download | about | |
| Namespace | http://zvon.org/graphotron |
|---|---|
| Element | vertex |
| Description | Vertex element creates graph vertices from nodes in source XML document. If the same source document node is matched by several vertex elements, the last matched vertex element is used. Name of the vertex can be set with name element of Graphotron. Other properties, as colors, shape, and so on are application specific and they can be set using any:vertex-property elements. |
| Attributes | match [ required ] Its value is an absolute XPath. Its use is equivalent to the match attribute of xsl:template in XSLT Recommendation. |
| Children | any:vertex-property, name |
| Parents | graphotron |
| Related: | XSLT Reference - xsl:template - match attribute |
|
XML Source
<source> <AAA/> <BBB> <CCC/> <CCC>c2</CCC> <CCC>c3</CCC> <XXX/> </BBB> <DDD/> </source> |
Graphotron Source
<graphotron version="1.0" xmlns="http://zvon.org/graphotron" > <vertex match="//*"/> <vertex match="/*/*"> <name select="name()"/> </vertex> <vertex match="/*/*/*"> <name select=".">Default</name> </vertex> <vertex match="//XXX"> <name>element X</name> </vertex> <edge match="//*" select="*"/> </graphotron> |
Display