<?xml version="1.0" encoding="UTF-8"?>
<Report>
<!-- $Id$ -->
	<Title><var var="i18n::translate('Close Relatives Report')" /></Title>
	<Description>Prints an individual record report showing close relatives</Description>
	<Input name="pid" type="text" default="" lookup="INDI"><var var="i18n::translate('Enter Individual ID')"/></Input>
	<Input name="relatives" type="select" options="child-family=>i18n::translate('Parents and siblings')|spouse-family=>i18n::translate('Spouses and children')|direct-ancestors=>i18n::translate('Direct line ancestors')|ancestors=>i18n::translate('Direct line ancestors and their families')|descendants=>i18n::translate('Descendants')|all=>i18n::translate('All')"><var var="i18n::translate('Choose relatives')"/></Input>
	<Input name="maxgen" type="select" default="4" options="*=>*|1=>1|2=>2|3=>3|4=>4|5=>5|6=>6|7=>7|8=>8|9=>9|10=>10"><var var="i18n::translate('Generations')"/></Input>
	<Input name="sortby" type="select" default="BIRT:DATE" options="none=>i18n::translate('None')|BIRT:DATE=>i18n::translate('Date of birth')|NAME=>i18n::translate('Name')"><var var="i18n::translate('Sort by')"/></Input>
	<Input name="sources" type="checkbox" default="0"><var var="i18n::translate('Show sources?')"/></Input>
	<Input name="notes" type="checkbox" default="1"><var var="i18n::translate('Show notes?')"/></Input>
	<Input name="photos" type="select" default="highlighted" options="none=>i18n::translate('None')|all=>i18n::translate('All')|highlighted=>i18n::translate('Highlighted image')"><var var="i18n::translate('Show photos?')"/></Input>
	<Input name="pageSize" type="select" default="A4" options="letter=>i18n::translate_c('paper size','Letter')|A3=>i18n::translate_c('paper size', 'A3')|A4=>i18n::translate_c('paper size','A4')|legal=>i18n::translate_c('paper size','Legal')"><var var="i18n::translate('Page size')" /></Input>
	<Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>i18n::translate_c('font name', 'Arial')|dejavusans=>i18n::translate_c('font name', 'DejaVu')|helvetica=>i18n::translate_c('font name', 'Helvetica')"><var var="i18n::translate('Font')"/></Input>
	<Input name="colors" type="checkbox" default="1"><var var="i18n::translate('Use colors')"/></Input>

	<!-- Header -->
	<Style name="header" font="$fonts" size="18"/>
	<!-- Generated by style - required style name by the generator -->
	<Style name="genby" font="$fonts" size="8"/>
	<!-- Links to sources - required style name by the generator -->
	<Style name="footnotenum" font="$fonts" size="6"/>
	<!-- Source text - FootnoteTexts - required style name by the generator -->
	<Style name="footnote" font="$fonts" size="8"/>
	<!-- Section title -->
	<Style name="title" font="$fonts" size="9" style="B"/>
	<!-- Page numbers text -->
	<Style name="pagenum" font="$fonts" size="8"/>
	<!-- Page Header text -->
	<Style name="pageheader" font="$fonts" size="14"/>
	<!-- Standard text -->
	<Style name="text" font="$fonts" size="9"/>
	<!-- Facts text -->
	<Style name="fact" font="$fonts" size="8"/>
	<!-- Individual names in text boxes -->
	<Style name="name" font="$fonts" size="10"/>
	<!-- Date text -->
	<Style name="date" font="$fonts" size="8"/>

	<SetVar name="ignore" value="CHAN,CHIL,FAMC,FAMS,HUSB,NAME,NOTE,OBJE,SEX,SOUR,TITL,WIFE,_UID,_WT_OBJE_SORT"/>
	<!-- Setup colors -->
	<!-- Section title background color -->
	<SetVar name="stbgcolor" value="#AAAAAA"/>
	<SetVar name="mbgcolor" value=""/>
	<SetVar name="fbgcolor" value=""/>
	<SetVar name="ugbgcolor" value=""/>
	<SetVar name="fbbgcolor" value=""/>
	<SetVar name="tcolor" value=""/>
	<!-- Use colors -->
	<if condition="$colors==1">
		<!-- Section title background color -->
		<SetVar name="stbgcolor" value="#9CA3D4"/>
		<!-- Male background color -->
		<SetVar name="mbgcolor" value="#D6E0EA"/>
		<!-- Female background color -->
		<SetVar name="fbgcolor" value="#E9DAF1"/>
		<!-- Unknown gender -->
		<SetVar name="ugbgcolor" value="#FFFFFF"/>
		<!-- Fact boxes -->
		<SetVar name="fbbgcolor" value="#D1D9FF"/>
		<!-- Text color - black -->
		<SetVar name="tcolor" value="#000000"/>
	</if>
	
	<!-- New Page controller -->
	<SetVar name="newpage" value="0"/>
	<!-- New Page for Sources controller if SOUR exist -->
	<SetVar name="source_exist" value="0"/>

	<!-- set the default widths -->
	<SetVar name="dwidth" value="200"/>
	<SetVar name="pwidth" value="436"/>
	<!-- space height -->
	<SetVar name="sheight" value="15"/>

	<SetVar name="width" value="433"/>
	<SetVar name="width1" value="418"/>
	<SetVar name="width2" value="233"/>

	<!-- change the widths for no pictures -->
	<if condition="$photos=='none'">
		<SetVar name="width" value="0"/>
		<SetVar name="width1" value="0"/>
		<SetVar name="width2" value="0"/>
	</if>

	<Doc pageSize="$pageSize">
		<Header>
			<Cell align="center" newline="1" style="header"><var var="i18n::translate('Close Relatives Report')"/></Cell>
			<Cell align="rightrtl" newline="1" style="pagenum"><var var="i18n::translate('Page')"/> <PageNum/> / <TotalPages/></Cell>
		</Header>

		<Body>
			<!-- set the gedcom context for this individual -->
			<Relatives id="$pid" group="$relatives" maxgen="$maxgen" sortby="$sortby">
				<if condition="$newpage==1">
					<NewPage/>
				</if>
				<SetVar name="newpage" value="1"/>
				<SetVar name="sex" value="@SEX"/>
				<SetVar name="mid" value="@ID"/>
				<!-- Individual name with LEVEL 1 source-->
				<TextBox newline="1">
					<Text style="pageheader"><GetPersonName id=""/> </Text>
					<if condition="($sources==1) and (@SOUR!='')">
						<RepeatTag tag="SOUR">
							<SetVar name="source_exist" value="1"/>
							<Footnote>
								<Gedcom id="@SOUR">
									<GedcomValue tag="TITL" />
								</Gedcom>
								<if condition="@PAGE!=''">: </if>
								<GedcomValue tag="SOUR:PAGE"/> <GedcomValue tag="SOUR:DATA:TEXT"/>
							</Footnote>
						</RepeatTag>
					</if>
				</TextBox>
				<!-- show the persons images -->
				<if condition="$photos=='all'">
					<!-- This is an image not a text, so don't use text padding
					Reset also the last height after all the images has been printed
					set pagecheck to 0, the image function check is too
					and "trick" the X-position back to the margin with a newline -->
					<TextBox left="$pwidth" newline="1" pagecheck="0" padding="0" reseth="1" width="80">
						<RepeatTag tag="OBJE">
							<Image file="@FILE" width="80" ln="N"/>
						</RepeatTag>
					</TextBox>
				</if>
				<!-- show the person's Highlighted Image -->
				<if condition="$photos=='highlighted'">
					<HighlightedImage left="$pwidth" width="80"/>
				</if>
				<!-- Print the individuals facts -->
				<Cell tcolor="$tcolor" bgcolor="$stbgcolor" border="1" newline="1" style="title" width="$width"><var var="i18n::translate('Personal Facts and Details')"/></Cell>
				<Facts ignore="$ignore" families="1">
					<TextBox bgcolor="$fbbgcolor" border="1" width="$dwidth">
						<Text color="$tcolor" style="fact"><var var="@fact"/>  </Text>
						<Text color="$tcolor" style="text"><GedcomValue tag="@fact:DATE"/>  </Text>
						<!-- look for fact level 2 sources -->
						<if condition="($sources==1) and (@SOUR!='')">
							<RepeatTag tag="@fact:SOUR">
								<SetVar name="source_exist" value="1"/>
								<Footnote>
									<Gedcom id="@SOUR">
										<GedcomValue tag="TITL"/>
									</Gedcom>
									<!-- Source text to footnotes -->
									<if condition="@PAGE!=''">: </if>
									<!-- Additional Details of the source -->
									<GedcomValue tag="SOUR:PAGE"/> <GedcomValue tag="SOUR:DATA:TEXT"/>
								</Footnote>
							</RepeatTag>
						</if>
					</TextBox>
					<!-- print a different layout for facts with descriptions -->
					<if condition="@desc!=''">
						<TextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
							<Text color="$tcolor" style="text">
								<GedcomValue tag="@desc"/>  <GedcomValue tag="@fact:PLAC"/>
							</Text>
							<Gedcom id="@_PGVS">
								<if condition="@SEX=='M'">
									<Text color="$tcolor" style="fact">  <var var="i18n::translate('Husband')"/></Text>
								</if>
								<if condition="@SEX=='F'">
									<Text color="$tcolor" style="fact">  <var var="i18n::translate('Wife')"/></Text>
								</if>
								<Text color="$tcolor" style="text"> <GetPersonName id=""/></Text>
							</Gedcom>
						</TextBox>
					</if>
					<!-- facts without descriptions -->
					<if condition="@desc==''">
						<TextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
							<Text color="$tcolor" style="fact"><var var="i18n::translate('Place')"/>  </Text>
							<Text color="$tcolor" style="text">
								<GedcomValue tag="@fact:PLAC"/>
								<!-- Print only when exist to reduce some spaces in the text, might avoid a line break -->
								<if condition="@fact:TEMP!=''">  <GedcomValue tag="@fact:TEMP"/></if>
							</Text>
							<Gedcom id="@_PGVS">
								<if condition="@SEX=='M'">
									<Text color="$tcolor" style="fact">  <var var="i18n::translate('Husband')"/></Text>
								</if>
								<if condition="@SEX=='F'">
									<Text color="$tcolor" style="fact">  <var var="i18n::translate('Wife')"/></Text>
								</if>
								<Text color="$tcolor" style="text"> <GetPersonName id=""/></Text>
							</Gedcom>
						</TextBox>
					</if>
				</Facts>
				<!-- print any level 1 notes, but only if exist -->
				<if condition="($notes==1) and (@NOTE!='')">
					<TextBox height="$sheight" newline="1" padding="0" width="15"/>
					<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="i18n::translate('Notes')"/></Cell>
					<RepeatTag tag="NOTE">
						<Cell bgcolor="$fbbgcolor" border="1" newline="1" style="text" tcolor="$tcolor" width="$width"><GedcomValue tag="NOTE"/></Cell>
					</RepeatTag>
				</if>

				<!-- print family with parents and siblings -->
				<TextBox height="$sheight" newline="1" padding="0" width="15"/>
				<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="i18n::translate('Family with parents')"/></Cell>
				<RepeatTag tag="FAMC">
					<Gedcom id="@FAMC">
						<!-- father -->
						<Gedcom id="@HUSB">
							<TextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
								<Text color="$tcolor" style="text"><var var="i18n::translate('Father')"/>  </Text>
								<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
								<if condition="($sources==1) and (@SOUR!='')">
									<RepeatTag tag="SOUR">
										<SetVar name="source_exist" value="1"/>
										<Footnote>
											<Gedcom id="@SOUR">
												<GedcomValue tag="TITL"/>
											</Gedcom>
											<if condition="@PAGE!=''">: </if>
											<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
										</Footnote>
									</RepeatTag>
								</if>
								<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
							</TextBox>
						</Gedcom>
						<!-- mother -->
						<Gedcom id="@WIFE">
							<TextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
								<Text color="$tcolor" style="text"><var var="i18n::translate('Mother')"/>  </Text>
								<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
								<if condition="($sources==1) and (@SOUR!='')">
									<RepeatTag tag="SOUR">
										<SetVar name="source_exist" value="1"/>
										<Footnote>
											<Gedcom id="@SOUR">
												<GedcomValue tag="TITL"/>
											</Gedcom>
											<if condition="@PAGE!=''">: </if>
											<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
										</Footnote>
									</RepeatTag>
								</if>
								<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
							</TextBox>
						</Gedcom>
						<!-- siblings -->
						<RepeatTag tag="CHIL">
						<if condition="@CHIL!=$mid">
							<Gedcom id="@CHIL">
								<!-- Brother -->
								<if condition="@SEX=='M'">
									<TextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
										<Text color="$tcolor" style="text"><var var="i18n::translate('Brother')"/>  </Text>
										<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
										<if condition="($sources==1) and (@SOUR!='')">
											<RepeatTag tag="SOUR">
												<SetVar name="source_exist" value="1"/>
												<Footnote>
													<Gedcom id="@SOUR">
														<GedcomValue tag="TITL"/>
													</Gedcom>
													<if condition="@PAGE!=''">: </if>
													<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
												</Footnote>
											</RepeatTag>
										</if>
										<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
									</TextBox>
								</if>
								<!-- Sister -->
								<if condition="@SEX=='F'">
									<TextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
										<Text color="$tcolor" style="text"><var var="i18n::translate('Sister')"/>  </Text>
										<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
										<if condition="($sources==1) and (@SOUR!='')">
											<RepeatTag tag="SOUR">
											<SetVar name="source_exist" value="1"/>
												<Footnote>
													<Gedcom id="@SOUR">
														<GedcomValue tag="TITL"/>
													</Gedcom>
													<if condition="@PAGE!=''">: </if>
													<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
												</Footnote>
											</RepeatTag>
										</if>
										<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
									</TextBox>
								</if>
								<!-- Unknown gender for Sibling -->
								<if condition="(@SEX=='U') or (@SEX=='')">
									<TextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
										<Text color="$tcolor" style="text"><var var="i18n::translate('Gender')"/> <var var="i18n::translate_c('unknown gender', 'Unknown')"/>  </Text>
										<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
										<if condition="($sources==1) and (@SOUR!='')">
											<RepeatTag tag="SOUR">
												<SetVar name="source_exist" value="1"/>
												<Footnote>
													<Gedcom id="@SOUR">
														<GedcomValue tag="TITL"/>
													</Gedcom>
													<if condition="@PAGE!=''">: </if>
													<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
												</Footnote>
											</RepeatTag>
										</if>
										<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
									</TextBox>
								</if>
							</Gedcom>
						  </if>
						</RepeatTag>
					</Gedcom>
				</RepeatTag>
				<!-- print family with spouse and children -->
				<RepeatTag tag="FAMS">
					<Gedcom id="@FAMS">
						<!-- print wife if person is husband -->
						<if condition="$sex=='M'">
							<TextBox height="$sheight" newline="1" padding="0" width="15"/>
							<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="i18n::translate('Family with wife')"/></Cell>
							<SetVar name="spid" value="@WIFE"/>
						</if>
						<!-- print husband if person is wife -->
						<if condition="$sex=='F'">
							<TextBox height="$sheight" newline="1" padding="0" width="15"/>
							<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="i18n::translate('Family with husband')"/></Cell>
							<SetVar name="spid" value="@HUSB"/>
						</if>
						<!-- print information for spouse -->
						<Gedcom id="$spid">
							<!-- husband -->
							<if condition="@SEX=='M'">
								<TextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
									<Text color="$tcolor" style="text"><var var="i18n::translate('Husband')"/>  </Text>
									<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
									<if condition="($sources==1) and (@SOUR!='')">
										<RepeatTag tag="SOUR">
											<SetVar name="source_exist" value="1"/>
											<Footnote>
												<Gedcom id="@SOUR">
													<GedcomValue tag="TITL"/>
												</Gedcom>
												<if condition="@PAGE!=''">: </if>
												<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
											</Footnote>
										</RepeatTag>
									</if>
									<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
								</TextBox>
							</if>
							<!-- wife -->
							<if condition="@SEX=='F'">
								<TextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
									<Text color="$tcolor" style="text"><var var="i18n::translate('Wife')"/>  </Text>
									<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
									<if condition="($sources==1) and (@SOUR!='')">
										<RepeatTag tag="SOUR">
											<SetVar name="source_exist" value="1"/>
											<Footnote>
												<Gedcom id="@SOUR">
													<GedcomValue tag="TITL"/>
												</Gedcom>
												<if condition="@PAGE!=''">: </if>
												<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
											</Footnote>
										</RepeatTag>
									</if>
									<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
								</TextBox>
							</if>
						</Gedcom>
						<!-- print children with spouse -->
						<RepeatTag tag="CHIL">
							<if condition="@CHIL!=$mid">
								<Gedcom id="@CHIL">
								<!-- Son -->
								<if condition="@SEX=='M'">
									<TextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
										<Text color="$tcolor" style="text"><var var="i18n::translate('Son')"/>  </Text>
										<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
										<if condition="($sources==1) and (@SOUR!='')">
											<RepeatTag tag="SOUR">
												<SetVar name="source_exist" value="1"/>
												<Footnote>
													<Gedcom id="@SOUR">
														<GedcomValue tag="TITL"/>
													</Gedcom>
													<if condition="@PAGE!=''">: </if>
													<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
												</Footnote>
											</RepeatTag>
										</if>
										<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
									</TextBox>
								</if>
								<!-- Daughter -->
								<if condition="@SEX=='F'">
									<TextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
										<Text color="$tcolor" style="text"><var var="i18n::translate('Daughter')"/>  </Text>
										<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
										<if condition="($sources==1) and (@SOUR!='')">
											<RepeatTag tag="SOUR">
												<SetVar name="source_exist" value="1"/>
												<Footnote>
													<Gedcom id="@SOUR">
														<GedcomValue tag="TITL"/>
													</Gedcom>
													<if condition="@PAGE!=''">: </if>
													<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
												</Footnote>
											</RepeatTag>
										</if>
										<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
									</TextBox>
								</if>
								<!-- Unknown gender for Child -->
								<if condition="(@SEX=='U') or (@SEX=='')">
									<TextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
										<Text color="$tcolor" style="text"><var var="i18n::translate('Gender')"/> <var var="i18n::translate_c('unknown gender', 'Unknown')"/>  </Text>
										<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
										<if condition="($sources==1) and (@SOUR!='')">
											<RepeatTag tag="SOUR">
												<SetVar name="source_exist" value="1"/>
												<Footnote>
													<Gedcom id="@SOUR">
														<GedcomValue tag="TITL"/>
													</Gedcom>
													<if condition="@PAGE!=''">: </if>
													<GedcomValue tag="PAGE"/> <GedcomValue tag="DATA:TEXT"/>
												</Footnote>
											</RepeatTag>
										</if>
										<Text color="$tcolor" style="text"> ( <var var="i18n::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="i18n::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom> )</Text>
									</TextBox>
								</if>
							</Gedcom>
						  </if>
						</RepeatTag>
					</Gedcom>
				</RepeatTag>
			</Relatives>
		</Body>
		<!-- print the sources -->
		<if condition="($sources==1) and ($source_exist==1)">
			<!-- add a new page -->
			<NewPage/>
			<Body>
				<TextBox newline="1">
					<Text style="pageheader"><var var="i18n::translate('Sources')"/><br /><br /></Text>
					<FootnoteTexts/>
				</TextBox>
			</Body>
		</if>
		<Footer>
			<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
		</Footer>
	</Doc>
</Report>
