<data>
	<organization>
		<name>${organizationData.name}</name>
		<address>${organizationData.mainContact.address}</address>
	</organization>
    <#list participantsData as participant>
        <#assign participantInfo = participantInfos?api.get(participant.id)>
        <#assign assets = participantAssets?api.get(participant.id)>
        <#assign fena = participantFunctions.getAssetByFunction(assets, 'Fena')>
        <#assign pes = participantFunctions.getAssetByFunction(assets, 'Pes')>
		<participant>
			<fena>
				<name><#if fena?? && fena.name?has_content>${fena.name}</#if></name>
				<number><#if fena?? && fena.number?has_content>${fena.number}</#if></number>
				<birthday><#if fena??>${participantFunctions.getAssetAttributeValue(fena.renderedAttributes, 'Datum narození')}</#if></birthday>
				<breed><#if fena??>${participantFunctions.getAssetAttributeValue(fena.renderedAttributes, 'Plemeno')}</#if></breed>
				<hd><#if fena??>${participantFunctions.getAssetAttributeValue(fena.renderedAttributes, 'HD')}</#if></hd>
				<ed><#if fena??>${participantFunctions.getAssetAttributeValue(fena.renderedAttributes, 'ED')}</#if></ed>
				<owner>
					<name><#if fena??>${participantFunctions.getAssetAttributeValue(fena.renderedAttributes, 'Majitel')}</#if></name>
					<address><#if fena??>${participantFunctions.getAssetAttributeValue(fena.renderedAttributes, 'Adresa majitele')}</#if></address>
				</owner>
			</fena>

			<pes>
				<name><#if pes?? && pes.name?has_content>${pes.name}</#if></name>
				<number><#if pes?? && pes.number?has_content>${pes.number}</#if></number>
				<birthday><#if pes??>${participantFunctions.getAssetAttributeValue(pes.renderedAttributes, 'Datum narození')}</#if></birthday>
				<breed><#if pes??>${participantFunctions.getAssetAttributeValue(pes.renderedAttributes, 'Plemeno')}</#if></breed>
				<hd><#if pes??>${participantFunctions.getAssetAttributeValue(pes.renderedAttributes, 'HD')}</#if></hd>
				<ed><#if pes??>${participantFunctions.getAssetAttributeValue(pes.renderedAttributes, 'ED')}</#if></ed>
				<owner>
					<name><#if pes??>${participantFunctions.getAssetAttributeValue(pes.renderedAttributes, 'Majitel z PK')}</#if></name>
					<address><#if pes??>${participantFunctions.getAssetAttributeValue(pes.renderedAttributes, 'Adresa majitele')}</#if></address>
				</owner>
			</pes>
			<nakryti>${participantFunctions.getInfoValue(participantInfo, 'Nakrytí')}</nakryti>
			<inseminace>${participantFunctions.getInfoValue(participantInfo, 'Inseminace')}</inseminace>
			<vystaveno>${participantFunctions.getInfoValue(participantInfo, 'Vystavení')}</vystaveno>

		</participant>
    </#list>
</data>