<?xml version="1.0" encoding="UTF-8"?>
<Report>
	<Title><var var="WT_I18N::translate('Missing data')" /></Title>
	<Description><var var="WT_I18N::translate('A report of the information that is missing for an individual and their relatives.')" /></Description>
	<Input name="pid" type="text" default="" lookup="INDI"><var var="WT_I18N::translate('Individual')"/></Input>
	<Input name="relatives" type="select" default="direct-ancestors" options="child-family=>WT_I18N::translate('Parents and siblings')|spouse-family=>WT_I18N::translate('Spouses and children')|direct-ancestors=>WT_I18N::translate('Direct line ancestors')|ancestors=>WT_I18N::translate('Direct line ancestors and their families')|descendants=>WT_I18N::translate('Descendants')|all=>WT_I18N::translate('All')"><var var="WT_I18N::translate('Choose relatives')"/></Input>
	<Input name="maxgen" type="select" default="*" options="1=>WT_I18N::number(1)|2=>WT_I18N::number(2)|3=>WT_I18N::number(3)|4=>WT_I18N::number(4)|5=>WT_I18N::number(5)|6=>WT_I18N::number(6)|7=>WT_I18N::number(7)|8=>WT_I18N::number(8)|9=>WT_I18N::number(9)|10=>WT_I18N::number(10)|*=>WT_I18N::translate('All')"><var var="WT_I18N::translate('Generations')"/></Input>
	<Input name="pageSize" type="select" default="A4" options="letter=>WT_I18N::translate_c('paper size','Letter')|A3=>WT_I18N::translate_c('paper size', 'A3')|A4=>WT_I18N::translate_c('paper size','A4')|legal=>WT_I18N::translate_c('paper size','Legal')"><var var="WT_I18N::translate('Page size')" /></Input>
	<Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>WT_I18N::translate_c('font name', 'Arial')|dejavusans=>WT_I18N::translate_c('font name', 'DejaVu')|helvetica=>WT_I18N::translate_c('font name', 'Helvetica')"><var var="WT_I18N::translate('Font')"/></Input>
	
	<Input name="fsour" type="checkbox" default="0"><var var="WT_I18N::translate('Sources to the events')" /></Input>
	<Input name="fbirt" type="checkbox" default="1"><var var="WT_I18N::translate('Birth')"/></Input>
	<Input name="fbapm" type="checkbox" default="0"><var var="WT_I18N::translate('Baptism')"/> / <var var="WT_I18N::translate('Christening')"/></Input>
	<Input name="fbarm" type="checkbox" default="0"><var var="WT_I18N::translate('Bar mitzvah')"/></Input>
	<Input name="fbasm" type="checkbox" default="0"><var var="WT_I18N::translate('Bat mitzvah')"/></Input>
	<Input name="fconf" type="checkbox" default="0"><var var="WT_I18N::translate('Confirmation')"/></Input>
	<Input name="fenga" type="checkbox" default="0"><var var="WT_I18N::translate('Engagement')"/></Input>
	<Input name="ffcom" type="checkbox" default="0"><var var="WT_I18N::translate('First communion')"/></Input>
	<Input name="fmarb" type="checkbox" default="0"><var var="WT_I18N::translate('Marriage banns')"/></Input>
	<Input name="fmarr" type="checkbox" default="0"><var var="WT_I18N::translate('Marriage')"/></Input>
	<Input name="fdeat" type="checkbox" default="1"><var var="WT_I18N::translate('Death')"/></Input>
	<Input name="fburi" type="checkbox" default="0"><var var="WT_I18N::translate('Burial')"/></Input>
	<Input name="freli" type="checkbox" default="0"><var var="WT_I18N::translate('Religion')"/></Input>

	<!-- Header -->
	<Style name="header" font="$fonts" size="18" style="b"/>
	<!-- Generated by style - required style name by the generator -->
	<Style name="genby" font="$fonts" size="8"/>
	<!-- Page numbers text -->
	<Style name="pagenum" font="$fonts" size="8"/>
	<!-- Date Text - CSS Style name -->
	<Style name="date" font="$fonts" size="8"/>
	<!-- Column list labels - CSS Style name -->
	<Style name="list_label" font="$fonts" size="9" style="b"/>
	<!-- List values - CSS Style name -->
	<Style name="list_value" font="$fonts" size="9"/>


	<SetVar name="name" value="300" />
	<SetVar name="printname" value="0" />
	<SetVar name="vspace" value="5" />
	<SetVar name="nrrelatives" value="0" />
	<SetVar name="nrprinted" value="0" />
	<SetVar name="nrevent" value="0" />
	<SetVar name="nrmissingevent" value="0" />

	<Doc pageSize="$pageSize">
		<Header>
			<Cell align="center" newline="1" style="header"><var var="WT_I18N::translate('Missing data')" /></Cell>
			<Cell align="rightrtl" newline="1" style="pagenum"><var var="WT_I18N::translate('Page')"/> <PageNum/> / <TotalPages/></Cell>
			<Cell align="center" border="1" style="list_label" width="$name"><var var="WT_I18N::translate('Name')" /></Cell>
			<Cell align="center" border="1" newline="1" style="list_label"><var var="WT_I18N::translate('Event')" /></Cell>
		</Header>

<!--	Start with BIRT GEDCOM tag.
			Place any GEDCOM tags in GEDCOM alphabetic order here
		End it with DEAT and BURI
		Place any GEDCOM tags after DEAT/BURI witch has no additional subtags, such as RELI, in alphabetic order
-->
		<Body>

			<Relatives id="$pid" group="$relatives" maxgen="$maxgen" sortby="NAME">
				<!-- Relatives counter -->
				<SetVar name="nrrelatives" value="$nrrelatives + 1" />
				<SetVar name="printname" value="0" />
				<!-- Birth -->
				<if condition="$fbirt=='1'">
					<!-- Total Event Counter -->
					<SetVar name="nrevent" value="$nrevent + 2" />
					<if condition="@BIRT:DATE==''">
						<!-- Missing event counter -->
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of birth')" /></Cell>
					</if>
					<if condition="@BIRT:PLAC==''">
						<!-- Missing event counter -->
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of birth')" /></Cell>
					</if>
					<if condition="$fsour=='1'">
						<!-- Total Event Counter -->
						<SetVar name="nrevent" value="$nrevent + 1" />
						<if condition="@BIRT:SOUR==''">
							<!-- Missing event counter -->
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
						</if>
					</if>
				</if>

				<!-- Baptism / Christining -->
				<if condition="$fbapm=='1'">
					<!-- Total Event Counter -->
					<SetVar name="nrevent" value="$nrevent + 2" />
					<SetVar name="printbapm" value="0" />
					<!-- Baptism -->
					<if condition="(@CHR:DATE=='') and (@CHR:PLAC=='') and (@CHR:SOUR=='')">
						<if condition="@BAPM:DATE==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of baptism')" /></Cell>
						</if>
						<if condition="@BAPM:PLAC==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of baptism')" /></Cell>
						</if>
						<if condition="$fsour=='1'">
							<SetVar name="nrevent" value="$nrevent + 1" />
							<if condition="@BAPM:SOUR==''">
								<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<if condition="$printname=='1'">
									<Cell style="list_value" width="$name"> </Cell>
								</if>
								<if condition="$printname=='0'">
									<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
									<SetVar name="printname" value="1" />
								</if>
								<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
							</if>
						</if>
						<SetVar name="printbapm" value="1" />
					</if>
					
					<!-- Christining -->
					<if condition="((@CHR:DATE=='') or (@CHR:PLAC=='')) and ($printbapm==0)">
						<if condition="@CHR:DATE==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of christening')" /></Cell>
						</if>
						<if condition="@CHR:PLAC==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of christening')" /></Cell>
						</if>
						<if condition="$fsour=='1'">
							<SetVar name="nrevent" value="$nrevent + 1" />
							<if condition="@CHR:SOUR==''">
								<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<if condition="$printname=='1'">
									<Cell style="list_value" width="$name"> </Cell>
								</if>
								<if condition="$printname=='0'">
									<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
									<SetVar name="printname" value="1" />
								</if>
								<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
							</if>
						</if>
					</if>
				</if>

				<!-- BARM - male only -->
				<if condition="($fbarm=='1') and (@SEX=='M')">
					<SetVar name="nrevent" value="$nrevent + 2" />
					<if condition="@BARM:DATE==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of bar mitzvah')" /></Cell>
					</if>
					<if condition="@BARM:PLAC==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of bar mitzvah')" /></Cell>
					</if>
					<if condition="$fsour=='1'">
						<SetVar name="nrevent" value="$nrevent + 1" />
						<if condition="@BARM:SOUR==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
						</if>
					</if>
				</if>

				<!-- BASM - female only -->
				<if condition="($fbasm=='1') and (@SEX=='F')">
					<SetVar name="nrevent" value="$nrevent + 2" />
					<if condition="@BASM:DATE==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of bat mitzvah')" /></Cell>
					</if>
					<if condition="@BASM:PLAC==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of bat mitzvah')" /></Cell>
					</if>
					<if condition="$fsour=='1'">
						<SetVar name="nrevent" value="$nrevent + 1" />
						<if condition="@BASM:SOUR==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
						</if>
					</if>
				</if>

				<!-- CONF -->
				<if condition="$fconf=='1'">
					<SetVar name="nrevent" value="$nrevent + 2" />
					<if condition="@CONF:DATE==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of confirmation')" /></Cell>
					</if>
					<if condition="@CONF:PLAC==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of confirmation')" /></Cell>
					</if>
					<if condition="$fsour=='1'">
						<SetVar name="nrevent" value="$nrevent + 1" />
						<if condition="@CONF:SOUR==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
						</if>
					</if>
				</if>

				<!-- ENGA -->
				<if condition="$fenga=='1'">
					<SetVar name="nrevent" value="$nrevent + 2" />
					<Gedcom id="@FAMS">
						<if condition="@ENGA:DATE==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of engagement')" /></Cell>
						</if>
						<if condition="@ENGA:PLAC==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of engagement')" /></Cell>
						</if>
						<if condition="$fsour=='1'">
							<SetVar name="nrevent" value="$nrevent + 1" />
							<if condition="@ENGA:SOUR==''">
								<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<if condition="$printname=='1'">
									<Cell style="list_value" width="$name"> </Cell>
								</if>
								<if condition="$printname=='0'">
									<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
									<SetVar name="printname" value="1" />
								</if>
								<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
							</if>
						</if>
					</Gedcom>
				</if>

				<!-- FCOM -->
				<if condition="$ffcom=='1'">
					<SetVar name="nrevent" value="$nrevent + 2" />
					<if condition="@FCOM:DATE==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of first communion')" /></Cell>
					</if>
					<if condition="@FCOM:PLAC==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of first communion')" /></Cell>
					</if>
					<if condition="$fsour=='1'">
						<SetVar name="nrevent" value="$nrevent + 1" />
						<if condition="@FCOM:SOUR==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
						</if>
					</if>
				</if>

				<!-- MARB -->
				<if condition="$fmarb=='1'">
					<SetVar name="nrevent" value="$nrevent + 2" />
					<Gedcom id="@FAMS">
						<if condition="@MARB:DATE==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of marriage banns')" /></Cell>
						</if>
						<if condition="@MARB:PLAC==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of marriage banns')" /></Cell>
						</if>
						<if condition="$fsour=='1'">
							<SetVar name="nrevent" value="$nrevent + 1" />
							<if condition="@MARB:SOUR==''">
								<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<if condition="$printname=='1'">
									<Cell style="list_value" width="$name"> </Cell>
								</if>
								<if condition="$printname=='0'">
									<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
									<SetVar name="printname" value="1" />
								</if>
								<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
							</if>
						</if>
					</Gedcom>
				</if>

				<!-- MARM -->
				<if condition="$fmarr=='1'">
					<SetVar name="nrevent" value="$nrevent + 2" />
					<Gedcom id="@FAMS">
						<if condition="@MARR:DATE==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of marriage')" /></Cell>
						</if>
						<if condition="@MARR:PLAC==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of marriage')" /></Cell>
						</if>
						<if condition="$fsour=='1'">
							<SetVar name="nrevent" value="$nrevent + 1" />
							<if condition="@MARR:SOUR==''">
								<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<if condition="$printname=='1'">
									<Cell style="list_value" width="$name"> </Cell>
								</if>
								<if condition="$printname=='0'">
									<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
									<SetVar name="printname" value="1" />
								</if>
								<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
							</if>
						</if>
					</Gedcom>
				</if>

				<!-- DEAT -->
				<if condition="$fdeat=='1'">
					<SetVar name="nrevent" value="$nrevent + 2" />
					<if condition="@DEAT:DATE==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of death')" /></Cell>
					</if>
					<if condition="@DEAT:PLAC==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of death')" /></Cell>
					</if>
					<if condition="$fsour=='1'">
						<SetVar name="nrevent" value="$nrevent + 1" />
						<if condition="@DEAT:SOUR==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
						</if>
					</if>
				</if>

				<!-- BURI -->
				<if condition="$fburi=='1'">
					<SetVar name="nrevent" value="$nrevent + 2" />
					<if condition="@BURI:DATE==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Date of burial')" /></Cell>
					</if>
					<if condition="@BURI:PLAC==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Place of burial')" /></Cell>
					</if>
					<if condition="$fsour=='1'">
						<SetVar name="nrevent" value="$nrevent + 1" />
						<if condition="@BURI:SOUR==''">
							<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<if condition="$printname=='1'">
								<Cell style="list_value" width="$name"> </Cell>
							</if>
							<if condition="$printname=='0'">
								<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
								<SetVar name="printname" value="1" />
							</if>
							<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Source')" /></Cell>
						</if>
					</if>
				</if>

				<!-- RELI -->
				<if condition="$freli=='1'">
					<SetVar name="nrevent" value="$nrevent + 1" />
					<if condition="@RELI==''">
						<SetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<if condition="$printname=='1'">
							<Cell style="list_value" width="$name"> </Cell>
						</if>
						<if condition="$printname=='0'">
							<Cell style="list_value" width="$name"><GetPersonName id="" /></Cell>
							<SetVar name="printname" value="1" />
						</if>
						<Cell newline="1" style="list_value"><var var="WT_I18N::translate('Religion')" /></Cell>
					</if>
				</if>

				<if condition="$printname=='1'">
					<SetVar name="nrprinted" value="$nrprinted + 1" />
					<TextBox height="1" newline="1" padding="0"/>
					<Line />
					<TextBox height="1" newline="1" padding="0"/>
				</if>

			</Relatives>

			<TextBox height="$vspace" newline="1" padding="0"/>
			<Cell align="rightrtl" newline="1" style="list_label"><var var="WT_I18N::translate('Total individuals')"/>: <var var="nrprinted"/> / <var var="nrrelatives"/></Cell>
			<Cell align="rightrtl" newline="1" style="list_label"><var var="WT_I18N::translate('Total events')"/>: <var var="nrmissingevent"/> / <var var="nrevent"/></Cell>
			<TextBox height="$vspace" newline="1" padding="0"/>

		</Body>

		<Footer>
			<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
		</Footer>
	</Doc>
</Report>
