<?xml version="1.0" encoding="UTF-8"?>
<PGVReport>
	<PGVRTitle><PGVRvar var="i18n::translate('Missing relatives facts')" /></PGVRTitle>
	<PGVRDescription>Prints a list of individuals who has missing information</PGVRDescription>
	<PGVRInput name="pid" type="text" default="" lookup="INDI"><PGVRvar var="i18n::translate('Enter Individual ID')"/></PGVRInput>
	<PGVRInput name="relatives" type="select" default="direct-ancestors" options="child-family,spouse-family,direct-ancestors,ancestors,descendants,all"><PGVRvar var="i18n::translate('Choose relatives')"/></PGVRInput>
	<PGVRInput name="maxgen" type="select" default="*" options="*,1,2,3,4,5,6,7,8,9,10"><PGVRvar var="i18n::translate('Generations')"/></PGVRInput>
	<PGVRInput name="pageSize" type="select" default="A4" options="A3,A4,letter,legal"><PGVRvar var="i18n::translate('Page size')"/></PGVRInput>
	<PGVRInput name="fonts" type="select" default="dejavusans" options="arialunicid0,dejavusans,helvetica"><PGVRvar var="i18n::translate('Font')"/></PGVRInput>
	
	<PGVRInput name="fsour" type="checkbox" default="0"><PGVRvar var="i18n::translate('Sources to the events')" /></PGVRInput>
	<PGVRInput name="fbirt" type="checkbox" default="1"><PGVRvar var="i18n::translate('Birth')"/></PGVRInput>
	<PGVRInput name="fbapm" type="checkbox" default="0"><PGVRvar var="i18n::translate('Baptism')"/> / <PGVRvar var="i18n::translate('Christening')"/></PGVRInput>
	<PGVRInput name="fbarm" type="checkbox" default="0"><PGVRvar var="i18n::translate('Bar Mitzvah')"/></PGVRInput>
	<PGVRInput name="fbasm" type="checkbox" default="0"><PGVRvar var="i18n::translate('Bas Mitzvah')"/></PGVRInput>
	<PGVRInput name="fconf" type="checkbox" default="0"><PGVRvar var="i18n::translate('Confirmation')"/></PGVRInput>
	<PGVRInput name="fenga" type="checkbox" default="0"><PGVRvar var="i18n::translate('Engagement')"/></PGVRInput>
	<PGVRInput name="ffcom" type="checkbox" default="0"><PGVRvar var="i18n::translate('First Communion')"/></PGVRInput>
	<PGVRInput name="fmarb" type="checkbox" default="0"><PGVRvar var="i18n::translate('Marriage Banns')"/></PGVRInput>
	<PGVRInput name="fmarr" type="checkbox" default="0"><PGVRvar var="i18n::translate('Marriage')"/></PGVRInput>
	<PGVRInput name="fdeat" type="checkbox" default="1"><PGVRvar var="i18n::translate('Death')"/></PGVRInput>
	<PGVRInput name="fburi" type="checkbox" default="0"><PGVRvar var="i18n::translate('Burial')"/></PGVRInput>
	<PGVRInput name="freli" type="checkbox" default="0"><PGVRvar var="i18n::translate('Religion')"/></PGVRInput>

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


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

	<PGVRDoc pageSize="$pageSize">
		<PGVRHeader>
			<PGVRCell align="center" newline="1" style="header"><PGVRvar var="i18n::translate('Missing relatives facts')" /></PGVRCell>
			<PGVRCell align="rightrtl" newline="1" style="pagenum"><PGVRvar var="i18n::translate('Page')"/> <PGVRPageNum/> / <PGVRTotalPages/></PGVRCell>
			<PGVRCell align="center" border="1" style="list_label" width="$name"><PGVRvar var="i18n::translate('Name')" /></PGVRCell>
			<PGVRCell align="center" border="1" newline="1" style="list_label"><PGVRvar var="i18n::translate('Event')" /></PGVRCell>
		</PGVRHeader>

<!--	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
-->
		<PGVRBody>

			<PGVRRelatives id="$pid" group="$relatives" maxgen="$maxgen" sortby="NAME">
				<!-- Relatives counter -->
				<PGVRSetVar name="nrrelatives" value="$nrrelatives + 1" />
				<PGVRSetVar name="printname" value="0" />
				<!-- Birth -->
				<PGVRif condition="$fbirt=='1'">
					<!-- Total Event Counter -->
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRif condition="@BIRT:DATE==''">
						<!-- Missing event counter -->
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Birth Date')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="@BIRT:PLAC==''">
						<!-- Missing event counter -->
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Birth Place')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="$fsour=='1'">
						<!-- Total Event Counter -->
						<PGVRSetVar name="nrevent" value="$nrevent + 1" />
						<PGVRif condition="@BIRT:SOUR==''">
							<!-- Missing event counter -->
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Birth Source')" /></PGVRCell>
						</PGVRif>
					</PGVRif>
				</PGVRif>

				<!-- Baptism / Christining -->
				<PGVRif condition="$fbapm=='1'">
					<!-- Total Event Counter -->
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRSetVar name="printbapm" value="0" />
					<!-- Baptism -->
					<PGVRif condition="(@CHR:DATE=='') and (@CHR:PLAC=='') and (@CHR:SOUR=='')">
						<PGVRif condition="@BAPM:DATE==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Baptism Date')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="@BAPM:PLAC==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Baptism Place')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="$fsour=='1'">
							<PGVRSetVar name="nrevent" value="$nrevent + 1" />
							<PGVRif condition="@BAPM:SOUR==''">
								<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<PGVRif condition="$printname=='1'">
									<PGVRCell style="list_value" width="$name"> </PGVRCell>
								</PGVRif>
								<PGVRif condition="$printname=='0'">
									<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
									<PGVRSetVar name="printname" value="1" />
								</PGVRif>
								<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Baptism Source')" /></PGVRCell>
							</PGVRif>
						</PGVRif>
						<PGVRSetVar name="printbapm" value="1" />
					</PGVRif>
					
					<!-- Christining -->
					<PGVRif condition="((@CHR:DATE=='') or (@CHR:PLAC=='')) and ($printbapm==0)">
						<PGVRif condition="@CHR:DATE==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Christening Date')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="@CHR:PLAC==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Christening Place')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="$fsour=='1'">
							<PGVRSetVar name="nrevent" value="$nrevent + 1" />
							<PGVRif condition="@CHR:SOUR==''">
								<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<PGVRif condition="$printname=='1'">
									<PGVRCell style="list_value" width="$name"> </PGVRCell>
								</PGVRif>
								<PGVRif condition="$printname=='0'">
									<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
									<PGVRSetVar name="printname" value="1" />
								</PGVRif>
								<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Christening Source')" /></PGVRCell>
							</PGVRif>
						</PGVRif>
					</PGVRif>
				</PGVRif>

				<!-- BARM - male only -->
				<PGVRif condition="($fbarm=='1') and (@SEX=='M')">
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRif condition="@BARM:DATE==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Bar Mitzvah Date')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="@BARM:PLAC==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Bar Mitzvah Place')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="$fsour=='1'">
						<PGVRSetVar name="nrevent" value="$nrevent + 1" />
						<PGVRif condition="@BARM:SOUR==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Bar Mitzvah Source')" /></PGVRCell>
						</PGVRif>
					</PGVRif>
				</PGVRif>

				<!-- BASM - female only -->
				<PGVRif condition="($fbasm=='1') and (@SEX=='F')">
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRif condition="@BASM:DATE==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Bas Mitzvah Date')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="@BASM:PLAC==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Bas Mitzvah Place')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="$fsour=='1'">
						<PGVRSetVar name="nrevent" value="$nrevent + 1" />
						<PGVRif condition="@BASM:SOUR==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Bas Mitzvah Source')" /></PGVRCell>
						</PGVRif>
					</PGVRif>
				</PGVRif>

				<!-- CONF -->
				<PGVRif condition="$fconf=='1'">
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRif condition="@CONF:DATE==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Confirmation Date')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="@CONF:PLAC==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Confirmation Place')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="$fsour=='1'">
						<PGVRSetVar name="nrevent" value="$nrevent + 1" />
						<PGVRif condition="@CONF:SOUR==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Confirmation Source')" /></PGVRCell>
						</PGVRif>
					</PGVRif>
				</PGVRif>

				<!-- ENGA -->
				<PGVRif condition="$fenga=='1'">
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRGedcom id="@FAMS">
						<PGVRif condition="@ENGA:DATE==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Engagement Date')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="@ENGA:PLAC==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Engagement Place')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="$fsour=='1'">
							<PGVRSetVar name="nrevent" value="$nrevent + 1" />
							<PGVRif condition="@ENGA:SOUR==''">
								<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<PGVRif condition="$printname=='1'">
									<PGVRCell style="list_value" width="$name"> </PGVRCell>
								</PGVRif>
								<PGVRif condition="$printname=='0'">
									<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
									<PGVRSetVar name="printname" value="1" />
								</PGVRif>
								<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Engagement Source')" /></PGVRCell>
							</PGVRif>
						</PGVRif>
					</PGVRGedcom>
				</PGVRif>

				<!-- FCOM -->
				<PGVRif condition="$ffcom=='1'">
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRif condition="@FCOM:DATE==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('First Communion Date')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="@FCOM:PLAC==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('First Communion Place')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="$fsour=='1'">
						<PGVRSetVar name="nrevent" value="$nrevent + 1" />
						<PGVRif condition="@FCOM:SOUR==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('First Communion Source')" /></PGVRCell>
						</PGVRif>
					</PGVRif>
				</PGVRif>

				<!-- MARB -->
				<PGVRif condition="$fmarb=='1'">
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRGedcom id="@FAMS">
						<PGVRif condition="@MARB:DATE==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Marriage Banns Date')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="@MARB:PLAC==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Marriage Banns Place')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="$fsour=='1'">
							<PGVRSetVar name="nrevent" value="$nrevent + 1" />
							<PGVRif condition="@MARB:SOUR==''">
								<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<PGVRif condition="$printname=='1'">
									<PGVRCell style="list_value" width="$name"> </PGVRCell>
								</PGVRif>
								<PGVRif condition="$printname=='0'">
									<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
									<PGVRSetVar name="printname" value="1" />
								</PGVRif>
								<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Marriage Banns Source')" /></PGVRCell>
							</PGVRif>
						</PGVRif>
					</PGVRGedcom>
				</PGVRif>

				<!-- MARM -->
				<PGVRif condition="$fmarr=='1'">
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRGedcom id="@FAMS">
						<PGVRif condition="@MARR:DATE==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Marriage Date')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="@MARR:PLAC==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Marriage Place')" /></PGVRCell>
						</PGVRif>
						<PGVRif condition="$fsour=='1'">
							<PGVRSetVar name="nrevent" value="$nrevent + 1" />
							<PGVRif condition="@MARR:SOUR==''">
								<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
								<PGVRif condition="$printname=='1'">
									<PGVRCell style="list_value" width="$name"> </PGVRCell>
								</PGVRif>
								<PGVRif condition="$printname=='0'">
									<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
									<PGVRSetVar name="printname" value="1" />
								</PGVRif>
								<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Marriage Source')" /></PGVRCell>
							</PGVRif>
						</PGVRif>
					</PGVRGedcom>
				</PGVRif>

				<!-- DEAT -->
				<PGVRif condition="$fdeat=='1'">
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRif condition="@DEAT:DATE==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Death Date')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="@DEAT:PLAC==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Death Place')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="$fsour=='1'">
						<PGVRSetVar name="nrevent" value="$nrevent + 1" />
						<PGVRif condition="@DEAT:SOUR==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Death Source')" /></PGVRCell>
						</PGVRif>
					</PGVRif>
				</PGVRif>

				<!-- BURI -->
				<PGVRif condition="$fburi=='1'">
					<PGVRSetVar name="nrevent" value="$nrevent + 2" />
					<PGVRif condition="@BURI:DATE==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Burial Date')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="@BURI:PLAC==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Burial Place')" /></PGVRCell>
					</PGVRif>
					<PGVRif condition="$fsour=='1'">
						<PGVRSetVar name="nrevent" value="$nrevent + 1" />
						<PGVRif condition="@BURI:SOUR==''">
							<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
							<PGVRif condition="$printname=='1'">
								<PGVRCell style="list_value" width="$name"> </PGVRCell>
							</PGVRif>
							<PGVRif condition="$printname=='0'">
								<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
								<PGVRSetVar name="printname" value="1" />
							</PGVRif>
							<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Burial Source')" /></PGVRCell>
						</PGVRif>
					</PGVRif>
				</PGVRif>

				<!-- RELI -->
				<PGVRif condition="$freli=='1'">
					<PGVRSetVar name="nrevent" value="$nrevent + 1" />
					<PGVRif condition="@RELI==''">
						<PGVRSetVar name="nrmissingevent" value="$nrmissingevent + 1" />
						<PGVRif condition="$printname=='1'">
							<PGVRCell style="list_value" width="$name"> </PGVRCell>
						</PGVRif>
						<PGVRif condition="$printname=='0'">
							<PGVRCell style="list_value" width="$name"><PGVRGetPersonName id="" /> - (<PGVRGedcomValue tag="@id" />)</PGVRCell>
							<PGVRSetVar name="printname" value="1" />
						</PGVRif>
						<PGVRCell newline="1" style="list_value"><PGVRvar var="i18n::translate('Religion')" /></PGVRCell>
					</PGVRif>
				</PGVRif>

				<PGVRif condition="$printname=='1'">
					<PGVRSetVar name="nrprinted" value="$nrprinted + 1" />
					<PGVRTextBox height="1" newline="1" padding="0"/>
					<PGVRLine />
					<PGVRTextBox height="1" newline="1" padding="0"/>
				</PGVRif>

			</PGVRRelatives>

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

		</PGVRBody>

		<PGVRFooter>
			<PGVRCell align="rightrtl" newline="1" style="date"><PGVRNow/></PGVRCell>
		</PGVRFooter>
	</PGVRDoc>
</PGVReport>
