<!ENTITY % types SYSTEM "types.dtd">
%types;

<!ELEMENT gnc:account (act:name, act:id, act:type, act:currency,
                       act:code?, act:description?,
                       act:security?, act:slots?, act:parent?)>
<!ATTLIST gnc:account version CDATA #REQUIRED>

<!ELEMENT act:name (#PCDATA)>

<!ELEMENT act:id (#PCDATA)>
<!ATTLIST act:id type %id-types; %default-id-type;>

<!ELEMENT act:type (#PCDATA)>

<!ELEMENT act:currency %commodity-type;>

<!ELEMENT act:security %commodity-type;>

<!ELEMENT act:slots %slot-type;>

<!ELEMENT act:parent (#PCDATA)>

<!ATTLIST act:parent type %id-types; #REQUIRED>

