Appendix C. PSQL DTD

            <?xml version="1.0" encoding="UTF-8" ?>
            <!ELEMENT psql (packages?,(type|pers|link)*) >
            <!ENTITY % psql.id
                'psql.uuid ID #IMPLIED psql.idref CDATA #IMPLIED' >
            <!--  -->
            <!-- Akce s objektem. Může nabývat hodnot
                none - none change
		added - newly added
                removed - removed
            -->
            <!ENTITY % psql.att
                'action CDATA "added"' >

	    <!ELEMENT packages (package)* >
	    <!ELEMENT package (type|pers)* >
	    <!ATTLIST package 
	        name CDATA #REQUIRED
            >
		
            
	    <!-- Used-defined type or structure definition -->
            <!ELEMENT type ANY >
            <!ATTLIST type 
                %psql.id; 
                %psql.att; >
            
		<!--  Persistent table definition -->
            <!ELEMENT pers ANY >
            <!ATTLIST pers
                %psql.id; 
                %psql.att; >
            
	    <!-- A lint to master table definition, contains foreign key definition -->
            <!ELEMENT link ANY >
            <!ATTLIST link
                %psql.id; 
                %psql.att;
                position CDATA #REQUIRED >
            
            
            <!-- Property of the object (eg. name, datatype, etc.) -->
            <!ELEMENT prop EMPTY>
            <!ATTLIST prop
                %psql.att;
                name CDATA #REQUIRED
                value CDATA #IMPLIED
                old CDATA #IMPLIED >
            
            <!--  Simple column definition. -->
            <!ELEMENT baseattr (prop*) >
            <!ATTLIST baseattr
                %psql.id;
                %psql.att; 
                order CDATA '999' >
	    <!-- Column created by structured type expansion. Contains the path
		from simple attribute to source attribute.
            -->
            <!ELEMENT expcompattr ANY >
            <!ATTLIST expcompattr
                %psql.id;
                %psql.att; 
                order CDATA '999' >
            
            <!-- A foreing key column definition. -->
            <!ELEMENT impattr ANY >
            <!ATTLIST impattr
                %psql.id;
                %psql.att; 
                order CDATA '999' >
            <!-- Attribute with structure type. No columns are generated.  -->
            <!ELEMENT compattr ANY >
            <!ATTLIST compattr
                %psql.id;
                %psql.att; 
                order CDATA '999' >
	    <!-- Supporting nodes. -->
            <!ELEMENT import ANY >
            <!ELEMENT expand ANY >