<data>
	<organization>
		<name>${organizationData.name}</name>
		<address>${organizationData.mainContact.address}</address>
	</organization>
    <#list participantsData as participant>
        <#assign infos = 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>
			<number>${participant.number}</number>
			<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, 'Varieta')}</#if></breed>
				<hd></hd>
				<ed></ed>
				<owner>
					<name></name>
					<address></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, 'Varieta')}</#if></breed>
				<hd></hd>
				<ed></ed>
				<owner>
					<name></name>
					<address></address>
				</owner>
			</pes>
			<nakryti></nakryti>
			<inseminace>Ne</inseminace>
			<vystaveno></vystaveno>

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