[
Start ]
[
Install etc. ]
[
Changelog ]
[
Todos ]
[
SourceForge]
[ Symbols ]
[
Properties ]
[
JavaDoc ]
[
FreshMeat ]
[
Ohloh ]
[
Browse source ]
x2svg
Used symbols
This page explains the symbols used in the rendered graphs. Currently there are two groups of symbols:
- Content model: those symbols specify if the enclosed elements need to apear in sequence or as a choice.
- Elements: the Elements show the content of the individual nodes of an XML document.
Future versions of x2svg will also show attributes of the elements.
Content model
![Choice symbol Choice symbol](img/choice.png)
- Elements enclosed can used alternatively. You have the
choice.
![Sequence symbol Sequence symbol](img/sequence.png)
- Elements enclosed need to be issued in the order given here. They need to come in a sequence.
![Inheritance symbol Inheritance symbol](img/InheritanceModel.png)
- This symbol specifies that the elements on the right side inherit from those on the left.
It is mostly used within XML Schema.
![Substitution symbol Substitution symbol](img/SubstitutionModel.png)
- This symbol specifies that the elements on the right side define a type/substitution
group for those on the left. It is mostly used within XML Schema.
Elements
![Empty element box Empty element box](img/element_box.png)
- This symbol is an empty element box and is sort of an abstract element.
On the left side, the cardinalities are shown as 'from' on the bottom and 'to' at the top.
So here we have an elment that can occour any number of times.
The fact that the element is optional is also shown by the dashed border.
![Normal Element - here as Text node](img/element.png)
- This symbol denotes an element with name f. The folding sign in
the upper right corner shows that this is a text node. Example:
<!ELEMENT f (#PCDATA)>
![Element with a reference Element with a reference](img/reference.png)
- The circled arrow in the top right corner denotes that this element has
already been defined further up in the tree (towards the root element) and
that its definition would end up in an endless loop. Example:
<!ELEMENT b (a,c)>
<!ELEMENT a (b,d)>
![Anonymous container symbol Anonymous container](img/anon_container.png)
- This symbol denotes a anonymous element group within an element declaration. Example:
<!ELEMENT a (b,(c|d)*,e)>
Here (c|d) is an anonymous container for enclosed elements c and d.
As you can see from the enclosed content model symbol, this is an anonymous container with a choice.
![Empyt element Empty element](img/element_opt_empty.png)
- The little zero in the top right corner denotes this element as an empty element. Example:
<!ELEMENT g EMPTY>
![Abstract Element (for XSD Diagrams) Abstract Element (XSD use)](img/abstractElement.png)
- The abstract element, denoted by the little A in the top right corner,
is an element that can not be used on its own, but which stands as a placeholder
for other elements that inherit from this abstract element. This element type is mostly used within XML Schema.
![Substitution Element (for XSD Diagrams) Substitution Element (XSD use)](img/SubstitutionElement.png)
- The substitution element, denoted by the little T in the top right corner,
is an element that can not be used on its own, but which denotes a type/substitution
group that will not be described further (in subtree form). This element type is mostly used within XML Schema.