<?xml version="1.0" encoding="UTF-8"?>
<!--This is the DTD for substrate parameters.-->

<!--Root.  This has the parameters for both regular substrate and 
New Zealand substrate.  This makes it easier to automate.-->
<!ELEMENT substrate (su_gapmossDecayAlpha?, su_gapmossDecayBeta?,
   su_organicDecayAlpha?, su_organicDecayBeta?, su_freshLogDecayAlpha?, 
   su_freshLogDecayBeta?, su_mossyLogToCanMoss?, 
   su_maxNumberDecayYears?, su_initialGapMoss?, su_initialOrganic?, 
   su_initialFreshLog?, su_initialMossyLog?, su_partialCutGapMoss?, 
   su_partialCutOrganic?, su_partialCutFreshLog?, su_partialCutMossyLog?, 
   su_gapCutGapMoss?, su_gapCutOrganic?, su_gapCutFreshLog?, 
   su_gapCutMossyLog?, su_clearCutGapMoss?, su_clearCutOrganic?, 
   su_clearCutFreshLog?, su_clearCutMossyLog?, su_propOfDeadFall?, 
   su_propOfFallUproot?, su_rootTipupFactor?,
   
   nzs_mineralSoilDecayAlpha?, 
   nzs_mineralSoilDecayBeta?, nzs_freshLogDecayAlpha?, 
   nzs_freshLogDecayBeta?, nzs_mossyLogToLitterMoss?, 
   nzs_mossProportion?, nzs_maxNumberDecayYears?, 
   nzs_initialMineralSoil?, nzs_initialFreshLog?, 
   nzs_initialMossyLog?, nzs_propOfDeadFall?, 
   nzs_propOfFallUproot?, nzs_rootTipupFactor?)>

<!--We're specifically not grouping items so it will
  	be easier to read them in as single values-->

<!--Gapmoss decay-->
<!ELEMENT su_gapmossDecayAlpha (#PCDATA)>
<!ELEMENT su_gapmossDecayBeta (#PCDATA)>

<!--Organic decay-->
<!ELEMENT su_organicDecayAlpha (#PCDATA)>
<!ELEMENT su_organicDecayBeta (#PCDATA)>

<!--Fresh log decay-->
<!ELEMENT su_freshLogDecayAlpha (#PCDATA)>
<!ELEMENT su_freshLogDecayBeta (#PCDATA)>

<!--Mossy log to canopy moss decay parameter-->
<!ELEMENT su_mossyLogToCanMoss (#PCDATA)>

<!--Maximum number of years a substrate even
	is allowed to linger on-->
<!ELEMENT su_maxNumberDecayYears (#PCDATA)>

<!--The next bit is the substrate proportions - each at 
 	different times - each will have the breakdowns of 
 	gap moss, organics, fresh logs, and mossy logs as a 
 	proportion from 0 to 1.  Canopy moss will be added 
 	to make it all add up to 1.-->
<!--Substrate initial conditions-->
<!ELEMENT su_initialGapMoss (#PCDATA)>
<!ELEMENT su_initialOrganic (#PCDATA)>
<!ELEMENT su_initialFreshLog (#PCDATA)>
<!ELEMENT su_initialMossyLog (#PCDATA)>
    
<!--After a partial cut harvest-->
<!ELEMENT su_partialCutGapMoss (#PCDATA)>
<!ELEMENT su_partialCutOrganic (#PCDATA)>
<!ELEMENT su_partialCutFreshLog (#PCDATA)>
<!ELEMENT su_partialCutMossyLog (#PCDATA)>
    
<!--After a gap cut harvest-->
<!ELEMENT su_gapCutGapMoss (#PCDATA)>
<!ELEMENT su_gapCutOrganic (#PCDATA)>
<!ELEMENT su_gapCutFreshLog (#PCDATA)>
<!ELEMENT su_gapCutMossyLog (#PCDATA)>
    
<!--After a clear cut harvest-->
<!ELEMENT su_clearCutGapMoss (#PCDATA)>
<!ELEMENT su_clearCutOrganic (#PCDATA)>
<!ELEMENT su_clearCutFreshLog (#PCDATA)>
<!ELEMENT su_clearCutMossyLog (#PCDATA)>

<!--Proportion of dead that fall as a value between
	0 and 1 - species-specific-->
<!ELEMENT su_propOfDeadFall (su_podfVal+)*>
<!ELEMENT su_podfVal (#PCDATA)>
<!ATTLIST su_podfVal species IDREF #REQUIRED>

<!--Proportion of fallen that uproot as a value 
	between 0 and 1 - species-specific-->
<!ELEMENT su_propOfFallUproot (su_pofuVal+)*>
<!ELEMENT su_pofuVal (#PCDATA)>
<!ATTLIST su_pofuVal species IDREF #REQUIRED>

<!--Proportion of snags that uproot as a value 
	between 0 and 1 - species-specific-->
<!ELEMENT su_propOfSnagsUproot (su_posuVal+)*>
<!ELEMENT su_posuVal (#PCDATA)>
<!ATTLIST su_posuVal species IDREF #REQUIRED>

<!--The amount by which the tipup mound is multiplied
to account for root effects-->
<!ELEMENT su_rootTipupFactor (#PCDATA)>

<!--*******************************
    New Zealand parameters
    *******************************-->

<!--Mineral soil decay-->
<!ELEMENT nzs_mineralSoilDecayAlpha (#PCDATA)>
<!ELEMENT nzs_mineralSoilDecayBeta (#PCDATA)>

<!--Fresh log decay-->
<!ELEMENT nzs_freshLogDecayAlpha (#PCDATA)>
<!ELEMENT nzs_freshLogDecayBeta (#PCDATA)>

<!--Mossy log to litter/moss decay parameter-->
<!ELEMENT nzs_mossyLogToLitterMoss (#PCDATA)>

<!--Proportion of the litter/moss pool that is moss-->
<!ELEMENT nzs_mossProportion (#PCDATA)>

<!--Maximum number of years a substrate even
	is allowed to linger on-->
<!ELEMENT nzs_maxNumberDecayYears (#PCDATA)>

<!--The next bit is the substrate proportions - each at 
 	different times - each will have the breakdowns of 
 	mineral soil, fresh logs, and mossy logs as a 
 	proportion from 0 to 1.  Litter and moss will be added 
 	to make it all add up to 1.-->
<!--Substrate initial conditions-->
<!ELEMENT nzs_initialMineralSoil (#PCDATA)>
<!ELEMENT nzs_initialFreshLog (#PCDATA)>
<!ELEMENT nzs_initialMossyLog (#PCDATA)>

<!--Initial average DBH of fresh logs for the first timestep - deprecated-->
<!--<!ELEMENT nzs_initialAvgDbhFreshLog (#PCDATA)>-->
    
<!--Proportion of dead that fall as a value between
	0 and 1 - species-specific-->
<!ELEMENT nzs_propOfDeadFall (nzs_podfVal+)*>
<!ELEMENT nzs_podfVal (#PCDATA)>
<!ATTLIST nzs_podfVal species IDREF #REQUIRED>

<!--Proportion of fallen that uproot as a value 
	between 0 and 1 - species-specific-->
<!ELEMENT nzs_propOfFallUproot (nzs_pofuVal+)*>
<!ELEMENT nzs_pofuVal (#PCDATA)>
<!ATTLIST nzs_pofuVal species IDREF #REQUIRED>

<!--The amount by which the tipup mound is multiplied
to account for root effects-->
<!ELEMENT nzs_rootTipupFactor (#PCDATA)>