<!ELEMENT definition (names+|description+)>
<!ATTLIST definition
	type        CDATA #FIXED "element"
	width       CDATA #REQUIRED
	height      CDATA #REQUIRED
	hotspot_x   CDATA #REQUIRED
	hotspot_y   CDATA #REQUIRED
	orientation CDATA "dnnn"
>

<!ELEMENT names (name)+>

<!ELEMENT name (#PCDATA)>
<!ATTLIST name lang CDATA #REQUIRED>

<!ELEMENT description (terminal+|line*|circle*|polygon*)+>

<!ELEMENT terminal    EMPTY>
<!ATTLIST terminal
	x           CDATA     #REQUIRED
	y           CDATA     #REQUIRED
	orientation (n|s|e|o) "n"
>

<!ELEMENT line    EMPTY>
<!ATTLIST line
	x1         CDATA       #REQUIRED
	y1         CDATA       #REQUIRED
	x2         CDATA       #REQUIRED
	y2         CDATA       #REQUIRED
	antialias (true|false) "false"
	style      CDATA       ""
>

<!ELEMENT circle   EMPTY>
<!ATTLIST circle
	x         CDATA        #REQUIRED
	y         CDATA        #REQUIRED
	rayon     CDATA        #REQUIRED
	antialias (true|false) "false"
	style     CDATA        ""
>

<!ELEMENT polygon EMPTY>
<!ATTLIST polygon
	x1          CDATA        #IMPLIED
	y1          CDATA        #IMPLIED
	x2          CDATA        #IMPLIED
	y2          CDATA        #IMPLIED
	x3          CDATA        #IMPLIED
	y3          CDATA        #IMPLIED
	x4          CDATA        #IMPLIED
	y4          CDATA        #IMPLIED
	x5          CDATA        #IMPLIED
	y5          CDATA        #IMPLIED
	x6          CDATA        #IMPLIED
	y6          CDATA        #IMPLIED
	x7          CDATA        #IMPLIED
	y7          CDATA        #IMPLIED
	x8          CDATA        #IMPLIED
	y8          CDATA        #IMPLIED
	x9          CDATA        #IMPLIED
	y9          CDATA        #IMPLIED
	x10         CDATA        #IMPLIED
	y10         CDATA        #IMPLIED
	antialias   (true|false) "false"
	style       CDATA        ""
>

