<?xml version="1.0" encoding="UTF-8"?>
<PGVReport access="PRIV_USER" icon="indis">
<!-- $Id: individuale.xml 6595 2009-12-21 21:47:10Z canajun2eh $ -->
	<PGVRTitle><PGVRvar var="pgv_lang[individual_with_rela_report]" /></PGVRTitle>
	<PGVRDescription>Prints an individual record report showing close relatives</PGVRDescription>
	<PGVRInput name="pid" type="text" default="" lookup="INDI"><PGVRvar var="pgv_lang[enter_pid]"/></PGVRInput>
	<PGVRInput name="relatives" type="select" options="child-family,spouse-family,direct-ancestors,ancestors,descendants,all"><PGVRvar var="pgv_lang[choose_relatives]"/></PGVRInput>
	<PGVRInput name="maxgen" type="select" default="4" options="*,1,2,3,4,5,6,7,8,9,10"><PGVRvar var="pgv_lang[generations]"/></PGVRInput>
	<PGVRInput name="sortby" type="select" default="BIRT:DATE" options="none,BIRT:DATE,NAME"><PGVRvar var="pgv_lang[sort_by]"/></PGVRInput>
	<PGVRInput name="sources" type="checkbox" default="0"><PGVRvar var="pgv_lang[show_sources]"/></PGVRInput>
	<PGVRInput name="notes" type="checkbox" default="1"><PGVRvar var="pgv_lang[show_notes]"/></PGVRInput>
	<PGVRInput name="photos" type="select" default="highlighted" options="none,all,highlighted"><PGVRvar var="pgv_lang[show_photos]"/></PGVRInput>
	<PGVRInput name="pageSize" type="select" default="A4" options="A3,A4,letter,legal"><PGVRvar var="pgv_lang[page_size]"/></PGVRInput>
	<PGVRInput name="fonts" type="select" default="dejavusans" options="arialunicid0,dejavusans,helvetica"><PGVRvar var="pgv_lang[font]"/></PGVRInput>
	<PGVRInput name="colors" type="checkbox" default="1"><PGVRvar var="pgv_lang[use_colors]"/></PGVRInput>

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

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

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

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

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

	<PGVRDoc pageSize="$pageSize">
		<PGVRHeader>
			<PGVRCell align="center" newline="1" style="header"><PGVRvar var="pgv_lang[individual_with_rela_report]"/></PGVRCell>
			<PGVRCell align="rightrtl" newline="1" style="pagenum"><PGVRvar var="pgv_lang[page]"/> <PGVRPageNum/> / <PGVRTotalPages/></PGVRCell>
		</PGVRHeader>

		<PGVRBody>
			<!-- set the gedcom context for this individual -->
			<PGVRRelatives id="$pid" group="$relatives" maxgen="$maxgen" sortby="$sortby">
				<PGVRif condition="$newpage==1">
					<PGVRNewPage/>
				</PGVRif>
				<PGVRSetVar name="newpage" value="1"/>
				<PGVRSetVar name="sex" value="@SEX"/>
				<PGVRSetVar name="mid" value="@ID"/>
				<!-- Individual name with LEVEL 1 source-->
				<PGVRTextBox newline="1">
					<PGVRText style="pageheader"><PGVRGetPersonName id=""/> </PGVRText>
					<PGVRif condition="($sources==1) and (@SOUR!='')">
						<PGVRRepeatTag tag="SOUR">
							<PGVRSetVar name="source_exist" value="1"/>
							<PGVRFootnote>
								<PGVRGedcom id="@SOUR">
									<PGVRGedcomValue tag="TITL" />
								</PGVRGedcom>
								<PGVRif condition="@PAGE!=''">: </PGVRif>
								<PGVRGedcomValue tag="SOUR:PAGE"/> <PGVRGedcomValue tag="SOUR:DATA:TEXT"/>
							</PGVRFootnote>
						</PGVRRepeatTag>
					</PGVRif>
				</PGVRTextBox>
				<!-- show the persons images -->
				<PGVRif 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 -->
					<PGVRTextBox left="$pwidth" newline="1" pagecheck="0" padding="0" reseth="1" width="80">
						<PGVRRepeatTag tag="OBJE">
							<PGVRImage file="@FILE" width="80" ln="N"/>
						</PGVRRepeatTag>
					</PGVRTextBox>
				</PGVRif>
				<!-- show the person's Highlighted Image -->
				<PGVRif condition="$photos=='highlighted'">
					<PGVRHighlightedImage left="$pwidth" width="80"/>
				</PGVRif>
				<!-- Print the individuals facts -->
				<PGVRCell tcolor="$tcolor" bgcolor="$stbgcolor" border="1" newline="1" style="title" width="$width"><PGVRvar var="pgv_lang[personal_facts]"/></PGVRCell>
				<PGVRFacts ignore="$ignore" families="1">
					<PGVRTextBox bgcolor="$fbbgcolor" border="1" width="$dwidth">
						<PGVRText color="$tcolor" style="fact"><PGVRvar var="factarray[@fact]"/>  </PGVRText>
						<PGVRText color="$tcolor" style="text"><PGVRGedcomValue tag="@fact:DATE"/>  </PGVRText>
						<!-- look for fact level 2 sources -->
						<PGVRif condition="($sources==1) and (@SOUR!='')">
							<PGVRRepeatTag tag="@fact:SOUR">
								<PGVRSetVar name="source_exist" value="1"/>
								<PGVRFootnote>
									<PGVRGedcom id="@SOUR">
										<PGVRGedcomValue tag="TITL"/>
									</PGVRGedcom>
									<!-- Source text to footnotes -->
									<PGVRif condition="@PAGE!=''">: </PGVRif>
									<!-- Additional Details of the source -->
									<PGVRGedcomValue tag="SOUR:PAGE"/> <PGVRGedcomValue tag="SOUR:DATA:TEXT"/>
								</PGVRFootnote>
							</PGVRRepeatTag>
						</PGVRif>
					</PGVRTextBox>
					<!-- print a different layout for facts with descriptions -->
					<PGVRif condition="@desc!=''">
						<PGVRTextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
							<PGVRText color="$tcolor" style="text">
								<PGVRGedcomValue tag="@desc"/>  <PGVRGedcomValue tag="@fact:PLAC"/>
							</PGVRText>
							<PGVRGedcom id="@_PGVS">
								<PGVRif condition="@SEX=='M'">
									<PGVRText color="$tcolor" style="fact">  <PGVRvar var="pgv_lang[husband]"/></PGVRText>
								</PGVRif>
								<PGVRif condition="@SEX=='F'">
									<PGVRText color="$tcolor" style="fact">  <PGVRvar var="pgv_lang[wife]"/></PGVRText>
								</PGVRif>
								<PGVRText color="$tcolor" style="text"> <PGVRGetPersonName id=""/></PGVRText>
							</PGVRGedcom>
						</PGVRTextBox>
					</PGVRif>
					<!-- facts without descriptions -->
					<PGVRif condition="@desc==''">
						<PGVRTextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
							<PGVRText color="$tcolor" style="fact"><PGVRvar var="factarray[PLAC]"/>  </PGVRText>
							<PGVRText color="$tcolor" style="text">
								<PGVRGedcomValue tag="@fact:PLAC"/>
								<!-- Print only when exist to reduce some spaces in the text, might avoid a line break -->
								<PGVRif condition="@fact:TEMP!=''">  <PGVRGedcomValue tag="@fact:TEMP"/></PGVRif>
							</PGVRText>
							<PGVRGedcom id="@_PGVS">
								<PGVRif condition="@SEX=='M'">
									<PGVRText color="$tcolor" style="fact">  <PGVRvar var="pgv_lang[husband]"/></PGVRText>
								</PGVRif>
								<PGVRif condition="@SEX=='F'">
									<PGVRText color="$tcolor" style="fact">  <PGVRvar var="pgv_lang[wife]"/></PGVRText>
								</PGVRif>
								<PGVRText color="$tcolor" style="text"> <PGVRGetPersonName id=""/></PGVRText>
							</PGVRGedcom>
						</PGVRTextBox>
					</PGVRif>
				</PGVRFacts>
				<!-- print any level 1 notes, but only if exist -->
				<PGVRif condition="($notes==1) and (@NOTE!='')">
					<PGVRTextBox height="$sheight" newline="1" padding="0" width="15"/>
					<PGVRCell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><PGVRvar var="pgv_lang[notes]"/></PGVRCell>
					<PGVRRepeatTag tag="NOTE">
						<PGVRCell bgcolor="$fbbgcolor" border="1" newline="1" style="text" tcolor="$tcolor" width="$width"><PGVRGedcomValue tag="NOTE"/></PGVRCell>
					</PGVRRepeatTag>
				</PGVRif>

				<!-- print family with parents and siblings -->
				<PGVRTextBox height="$sheight" newline="1" padding="0" width="15"/>
				<PGVRCell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><PGVRvar var="pgv_lang[as_child]"/></PGVRCell>
				<PGVRRepeatTag tag="FAMC">
					<PGVRGedcom id="@FAMC">
						<!-- father -->
						<PGVRGedcom id="@HUSB">
							<PGVRTextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
								<PGVRText color="$tcolor" style="text"><PGVRvar var="pgv_lang[father]"/>  </PGVRText>
								<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
								<PGVRif condition="($sources==1) and (@SOUR!='')">
									<PGVRRepeatTag tag="SOUR">
										<PGVRSetVar name="source_exist" value="1"/>
										<PGVRFootnote>
											<PGVRGedcom id="@SOUR">
												<PGVRGedcomValue tag="TITL"/>
											</PGVRGedcom>
											<PGVRif condition="@PAGE!=''">: </PGVRif>
											<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
										</PGVRFootnote>
									</PGVRRepeatTag>
								</PGVRif>
								<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
							</PGVRTextBox>
						</PGVRGedcom>
						<!-- mother -->
						<PGVRGedcom id="@WIFE">
							<PGVRTextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
								<PGVRText color="$tcolor" style="text"><PGVRvar var="pgv_lang[mother]"/>  </PGVRText>
								<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
								<PGVRif condition="($sources==1) and (@SOUR!='')">
									<PGVRRepeatTag tag="SOUR">
										<PGVRSetVar name="source_exist" value="1"/>
										<PGVRFootnote>
											<PGVRGedcom id="@SOUR">
												<PGVRGedcomValue tag="TITL"/>
											</PGVRGedcom>
											<PGVRif condition="@PAGE!=''">: </PGVRif>
											<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
										</PGVRFootnote>
									</PGVRRepeatTag>
								</PGVRif>
								<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
							</PGVRTextBox>
						</PGVRGedcom>
						<!-- siblings -->
						<PGVRRepeatTag tag="CHIL">
						<PGVRif condition="@CHIL!=$mid">
							<PGVRGedcom id="@CHIL">
								<!-- Brother -->
								<PGVRif condition="@SEX=='M'">
									<PGVRTextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="pgv_lang[brother]"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
								<!-- Sister -->
								<PGVRif condition="@SEX=='F'">
									<PGVRTextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="pgv_lang[sister]"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
											<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
								<!-- Unknown gender for Sibling -->
								<PGVRif condition="(@SEX=='U') or (@SEX=='')">
									<PGVRTextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="factarray[SEX]"/> <PGVRvar var="pgv_lang[stat_unknown]"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
							</PGVRGedcom>
						  </PGVRif>
						</PGVRRepeatTag>
					</PGVRGedcom>
				</PGVRRepeatTag>
				<!-- print family with spouse and children -->
				<PGVRRepeatTag tag="FAMS">
					<PGVRGedcom id="@FAMS">
						<!-- print wife if person is husband -->
						<PGVRif condition="$sex=='M'">
							<PGVRTextBox height="$sheight" newline="1" padding="0" width="15"/>
							<PGVRCell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><PGVRvar var="pgv_lang[family_with]"/> <PGVRvar var="pgv_lang[wife]"/></PGVRCell>
							<PGVRSetVar name="spid" value="@WIFE"/>
						</PGVRif>
						<!-- print husband if person is wife -->
						<PGVRif condition="$sex=='F'">
							<PGVRTextBox height="$sheight" newline="1" padding="0" width="15"/>
							<PGVRCell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><PGVRvar var="pgv_lang[family_with]"/> <PGVRvar var="pgv_lang[husband]"/></PGVRCell>
							<PGVRSetVar name="spid" value="@HUSB"/>
						</PGVRif>
						<!-- print information for spouse -->
						<PGVRGedcom id="$spid">
							<!-- husband -->
							<PGVRif condition="@SEX=='M'">
								<PGVRTextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
									<PGVRText color="$tcolor" style="text"><PGVRvar var="pgv_lang[husband]"/>  </PGVRText>
									<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
									<PGVRif condition="($sources==1) and (@SOUR!='')">
										<PGVRRepeatTag tag="SOUR">
											<PGVRSetVar name="source_exist" value="1"/>
											<PGVRFootnote>
												<PGVRGedcom id="@SOUR">
													<PGVRGedcomValue tag="TITL"/>
												</PGVRGedcom>
												<PGVRif condition="@PAGE!=''">: </PGVRif>
												<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
											</PGVRFootnote>
										</PGVRRepeatTag>
									</PGVRif>
									<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
								</PGVRTextBox>
							</PGVRif>
							<!-- wife -->
							<PGVRif condition="@SEX=='F'">
								<PGVRTextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
									<PGVRText color="$tcolor" style="text"><PGVRvar var="pgv_lang[wife]"/>  </PGVRText>
									<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
									<PGVRif condition="($sources==1) and (@SOUR!='')">
										<PGVRRepeatTag tag="SOUR">
											<PGVRSetVar name="source_exist" value="1"/>
											<PGVRFootnote>
												<PGVRGedcom id="@SOUR">
													<PGVRGedcomValue tag="TITL"/>
												</PGVRGedcom>
												<PGVRif condition="@PAGE!=''">: </PGVRif>
												<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
											</PGVRFootnote>
										</PGVRRepeatTag>
									</PGVRif>
									<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
								</PGVRTextBox>
							</PGVRif>
						</PGVRGedcom>
						<!-- print children with spouse -->
						<PGVRRepeatTag tag="CHIL">
							<PGVRif condition="@CHIL!=$mid">
								<PGVRGedcom id="@CHIL">
								<!-- Son -->
								<PGVRif condition="@SEX=='M'">
									<PGVRTextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="pgv_lang[son]"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
								<!-- Daughter -->
								<PGVRif condition="@SEX=='F'">
									<PGVRTextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="pgv_lang[daughter]"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
								<!-- Unknown gender for Child -->
								<PGVRif condition="(@SEX=='U') or (@SEX=='')">
									<PGVRTextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
										<PGVRText color="$tcolor" style="text"><PGVRvar var="factarray[SEX]"/> <PGVRvar var="pgv_lang[stat_unknown]"/>  </PGVRText>
										<PGVRText color="$tcolor" style="name"><PGVRGetPersonName id=""/> </PGVRText>
										<PGVRif condition="($sources==1) and (@SOUR!='')">
											<PGVRRepeatTag tag="SOUR">
												<PGVRSetVar name="source_exist" value="1"/>
												<PGVRFootnote>
													<PGVRGedcom id="@SOUR">
														<PGVRGedcomValue tag="TITL"/>
													</PGVRGedcom>
													<PGVRif condition="@PAGE!=''">: </PGVRif>
													<PGVRGedcomValue tag="PAGE"/> <PGVRGedcomValue tag="DATA:TEXT"/>
												</PGVRFootnote>
											</PGVRRepeatTag>
										</PGVRif>
										<PGVRText color="$tcolor" style="text"> ( <PGVRvar var="factarray[BIRT]"/>: <PGVRGedcomValue tag="BIRT:DATE"/> <PGVRGedcomValue tag="BIRT:PLAC"/><PGVRGedcom id="DEAT"> - <PGVRvar var="factarray[DEAT]"/>: <PGVRGedcomValue tag="DEAT:DATE"/> <PGVRGedcomValue tag="DEAT:PLAC"/></PGVRGedcom> )</PGVRText>
									</PGVRTextBox>
								</PGVRif>
							</PGVRGedcom>
						  </PGVRif>
						</PGVRRepeatTag>
					</PGVRGedcom>
				</PGVRRepeatTag>
			</PGVRRelatives>
		</PGVRBody>
		<!-- print the sources -->
		<PGVRif condition="($sources==1) and ($source_exist==1)">
			<!-- add a new page -->
			<PGVRNewPage/>
			<PGVRBody>
				<PGVRTextBox newline="1">
					<PGVRText style="pageheader"><PGVRvar var="pgv_lang[sources]"/><br /><br /></PGVRText>
					<PGVRFootnoteTexts/>
				</PGVRTextBox>
			</PGVRBody>
		</PGVRif>
		<PGVRFooter>
			<PGVRCell align="rightrtl" newline="1" style="date"><PGVRNow/></PGVRCell>
		</PGVRFooter>
	</PGVRDoc>
</PGVReport>
