<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Drosophila_brain_lineages [
	<!ELEMENT nervous_tissue (secondary_lineage*,nerve*,neuropil_compartment*,vessel*, surface_glia)>
	<!ATTLIST nervous_tissue id NMTOKEN #REQUIRED>
	<!ATTLIST nervous_tissue title NMTOKEN #REQUIRED>
	<!ELEMENT profile EMPTY>
	<!ATTLIST profile id NMTOKEN #REQUIRED> <!-- The database id of the profile -->
	<!ATTLIST profile index NMTOKEN #REQUIRED> <!-- Used to order profile ids by array index. -->
	<!ELEMENT profile_list (profile+)> <!-- At least one profile -->
	<!ELEMENT pipe EMPTY>
	<!ATTLIST pipe id NMTOKEN #REQUIRED>
	<!ELEMENT ball EMPTY>
	<!ATTLIST ball id NMTOKEN #REQUIRED>
	<!ELEMENT nerve (pipe)>
	<!ATTLIST nerve id NMTOKEN #REQUIRED>
	<!ATTLIST nerve title NMTOKEN #REQUIRED>
	<!ELEMENT neurite_tree (neurite_branch)>
	<!ATTLIST neurite_tree id NMTOKEN #REQUIRED>
	<!ELEMENT neurite_branch (pipe, neurite_branch*)>
	<!ATTLIST neurite_branch id NMTOKEN #REQUIRED>
	<!ELEMENT primary_lineage (profile_list, neurite_tree)>
	<!ATTLIST primary_lineage id NMTOKEN #REQUIRED>
	<!ATTLIST primary_lineage title NMTOKEN #REQUIRED>
	<!ELEMENT secondary_lineage (profile_list, neurite_tree)>
	<!ATTLIST secondary_lineage id NMTOKEN #REQUIRED>
	<!ATTLIST secondary_lineage title NMTOKEN #REQUIRED>
	<!ELEMENT vessel (vessel_branch+)> <!-- From zero to any branches -->
	<!ATTLIST vessel id NMTOKEN #REQUIRED>
	<!ATTLIST vessel title NMTOKEN #REQUIRED>
	<!ELEMENT vessel_branch (pipe)>
	<!ATTLIST vessel_branch id NMTOKEN #REQUIRED>
	<!ATTLIST vessel_branch title NMTOKEN #REQUIRED>
	<!ELEMENT neuropil_compartment (profile_list)>
	<!ATTLIST neuropil_compartment id NMTOKEN #REQUIRED>
	<!ATTLIST neuropil_compartment title NMTOKEN #REQUIRED>
	<!ELEMENT surface_glia (profile_list)>
	<!ATTLIST surface_glia id NMTOKEN #REQUIRED>
	<!ATTLIST surface_glia title NMTOKEN #REQUIRED> <!-- a title, so it can be specified if it's from thw right or left hemisphere, etc. -->
	<!ELEMENT tract (tract_branch)>
	<!ATTLIST tract id NMTOKEN #REQUIRED>
	<!ATTLIST tract title NMTOKEN #REQUIRED>
	<!ELEMENT tract_branch (tract_branch*, pipe)>
	<!ATTLIST tract_branch id NMTOKEN #REQUIRED>
	<!ATTLIST tract_branch title NMTOKEN #REQUIRED>
] >

<nervous_tissue id="0" title="all brain">
	<surface_glia id="1" title="brain surface">
		<profile_list>
			<profile id="401" index="101" />
			<!--<profile id="202" index="1" />-->
			<!-- More profiles... -->
		</profile_list>
		<ball id="2001" />
	</surface_glia>
	<secondary_lineage id="2" title="BPL">
		<profile_list>
			<profile id="201" index="101" />
			<!--<profile id="202" index="1" />-->
			<!-- More profiles... -->
		</profile_list>
		<ball id="2002" />
		<neurite_tree id="3">
			<neurite_branch id="10">
				<pipe id="301" />
				<neurite_branch id="11">
					<!-- and so on with nested branches -->
				</neurite_branch>
			</neurite_branch>
		</neurite_tree>
	</secondary_lineage>
	<!-- Another secondary lineage
	<secondary_lineage id="2" title="BPL">
		...
	</secondary_lineage>
	-->
	<primary_lineage id="2" title="any">
		<profile_list>
			<profile id="201" index="101" />
			<!--<profile id="202" index="1" />-->
			<!-- More profiles... -->
		</profile_list>
		<ball id="2002" />
		<neurite_tree id="3">
			<neurite_branch id="10">
				<pipe id="301" />
				<neurite_branch id="11">
					<!-- and so on with nested branches -->
				</neurite_branch>
			</neurite_branch>
		</neurite_tree>
	</primary_lineage>
	<vessel id="509">
		<vessel_branch id="510">
			<pipe id="501"/>
			<vessel_branch id="512">
				<!-- Another vessel_branch, child of the above -->
			</vessel_branch>
		</vessel_branch>
	</vessel>
	<!-- Another vessel
	<vessel id="609">
		...
	</vessel>
	-->
	<neuropil_compartment id="6" title="mushroom body">
		<profile_list>
			<profile id="801" index="1" /> <!--The index is the stack index, the order in the Z axis. -->
			<!--<profile id="202" index="1" />-->
			<!-- More profiles... -->
		</profile_list>
	</neuropil_compartment>
	<!-- another neuropil compartment
	<neuropile_compartment id="7" title="another">
		...
	</neuropil_compartment>
	-->
	<nerve id="8" title="maxillary nerve">
		<pipe id="901" />
	</nerve>

	<tract id="10" title="tract">
		<tract_branch id="902" title="branch">
			<tract_branch id="903" title="branch" /> <!-- dummy recursive one -->
			<pipe id="904" />
		</tract_branch>
	</tract>
</nervous_tissue>
