1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00
webtrees_ynh/sources/modules_v3/descendancy_report/report.xml

620 lines
28 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<Report>
<Title><var var="I18N::translate('Descendants')" /></Title>
<Description><var var="I18N::translate('A report of an individuals descendants, in a narrative style.')" /></Description>
<Input name="pid" lookup="INDI" type="text" default=""><var var="I18N::translate('Individual')" /></Input>
<Input name="maxgen" type="select" options="3=>I18N::number(3)|4=>I18N::number(4)|5=>I18N::number(5)|6=>I18N::number(6)|7=>I18N::number(7)|8=>I18N::number(8)|9=>I18N::number(9)|10=>I18N::number(10)|*=>I18N::translate('All')"><var var="I18N::translate('Generations')" /></Input>
<Input name="sources" type="checkbox" default="1"><var var="I18N::translate('Show sources')" /></Input>
<Input name="pageSize" type="select" default="A4" options="letter=>I18N::translateContext('paper size','Letter')|A3=>I18N::translateContext('paper size', 'A3')|A4=>I18N::translateContext('paper size','A4')|legal=>I18N::translateContext('paper size','Legal')"><var var="I18N::translate('Page size')" /></Input>
<!--
<Input name="fonts" type="select" default="dejavusans" options="arialunicid0=>I18N::translateContext('font name', 'Arial')|dejavusans=>I18N::translateContext('font name', 'DejaVu')|helvetica=>I18N::translateContext('font name', 'Helvetica')"><var var="I18N::translate('Font')"/></Input>
-->
<SetVar name="fonts" value="dejavusans" />
<!-- Header -->
<Style name="header" font="$fonts" size="18"/>
<!-- Page numbers text -->
<Style name="pagenum" font="$fonts" size="8"/>
<!-- Standard text -->
<Style name="text" font="$fonts" size="9"/>
<!-- Source text - FootnoteTexts - required style name by the generator -->
<Style name="footnote" font="$fonts" size="8"/>
<!-- Links to sources - required style name by the generator -->
<Style name="footnotenum" font="$fonts" size="7"/>
<!-- Generated by style - required style name by the generator -->
<Style name="genby" font="$fonts" size="8" />
<!-- Date text -->
<Style name="date" font="$fonts" size="8"/>
<Style name="subheader" font="$fonts" size="12" style="b" />
<Style name="label1" font="$fonts" size="8"/>
<Style name="label2" font="$fonts" size="10"/>
<Style name="name" font="$fonts" size="9"/>
<Style name="name1" font="$fonts" size="14"/>
<SetVar name="personNumber" value="1" />
<SetVar name="childNumber" value="2" />
<SetVar name="generation" value="0" />
<!-- New Page for Sources controller if SOUR exist -->
<SetVar name="source_exist" value="0" />
<Doc pageSize="$pageSize">
<Header>
<Cell align="center" height="30" newline="1" style="header"><var var="I18N::translate('Descendants of ')" /><GetPersonName id="$pid" /></Cell>
<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
</Header>
<Body>
<Relatives id="$pid" group="descendants" sortby="generation" maxgen="$maxgen">
<SetVar name="showPerson" value="F" />
<RepeatTag tag="FAMS">
<Gedcom id="@FAMS:@CHIL">
<SetVar name="showPerson" value="T" />
</Gedcom>
</RepeatTag>
<if condition="$showPerson=='T'">
<if condition="$generation!=@generation">
<Cell align="center" height="20" newline="1" style="subheader"><var var="I18N::translate('Generation ')" /> <Generation /></Cell>
<SetVar name="generation" value="@generation" />
</if>
<TextBox border="" width="25" height="40">
<Text style="name"><var var="personNumber" />.</Text>
</TextBox>
<TextBox border="" height="40" newline="1">
<Text style="name"><GetPersonName id="" /> </Text>
<if condition="$sources==1">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<SetVar name="printPeriod" value="false" />
<SetVar name="gender" value="male" />
<if condition="@SEX=='F'">
<SetVar name="gender" value="female" />
</if>
<SetVar name="birtExists" value="false" />
<Gedcom id="BIRT">
<SetVar name="birtExists" value="true" />
<SetVar name="printPeriod" value="true" />
<if condition="$gender=='male'">
<Text style="label1"> <var var="I18N::translateContext('MALE', 'was born')" /> </Text>
</if>
<if condition="$gender=='female'">
<Text style="label1"> <var var="I18N::translateContext('FEMALE', 'was born')" /> </Text>
</if>
<if condition="$sources==1">
<RepeatTag tag="BIRT:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
</if>
<if condition="@DATE!=''">
<Text style="label1"> <var var=" " /> <GedcomValue tag="DATE" level="2" /></Text>
</if>
<if condition="@PLAC!=''">
<Text style="label1"> <var var="I18N::translate(' in ')" /> <GedcomValue tag="PLAC" level="2" /></Text>
</if>
</Gedcom>
<Gedcom id="DEAT">
<SetVar name="printPeriod" value="true" />
<if condition="$birtExists=='true'">
<Text style="label1"> <var var="I18N::translate('and')" /></Text>
</if>
<if condition="$gender=='male'">
<Text style="label1"> <var var="I18N::translateContext('MALE', 'died')" /> </Text>
</if>
<if condition="$gender=='female'">
<Text style="label1"> <var var="I18N::translateContext('FEMALE', 'died')" /> </Text>
</if>
<if condition="$sources==1">
<RepeatTag tag="DEAT:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
</if>
<if condition="@DATE!=''">
<Text style="label1"> <var var=" " /> <GedcomValue tag="DATE" level="2" /></Text>
</if>
<if condition="@PLAC!=''">
<Text style="label1"> <var var="I18N::translate(' in ')" /> <GedcomValue tag="PLAC" level="2" /></Text>
</if>
</Gedcom>
<SetVar name="printPronoun" value="false" />
<if condition="$printPeriod=='true'">
<Text style="label1">.</Text>
<SetVar name="printPronoun" value="true" />
</if>
<RepeatTag tag="FAMS">
<SetVar name="printPeriod" value="false" />
<Gedcom id="@FAMS">
<SetVar name="marrExists" value="false" />
<if condition="$gender=='male'">
<Gedcom id="MARR">
<SetVar name="marrExists" value="true" />
<if condition="$printPronoun=='true'" >
<Text style="label1"> <var var="I18N::translate('He married')" /> </Text>
</if>
<if condition="$printPronoun=='false'" >
<Text style="label1"> <var var="I18N::translateContext('MALE', 'married')" /> </Text>
</if>
<SetVar name="printPeriod" value="true" />
<if condition="$sources==1">
<RepeatTag tag="MARR:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
</if>
</Gedcom>
<if condition="$marrExists=='true'">
<Gedcom id="@WIFE">
<Text style="name"> <GetPersonName id="" /> </Text>
<if condition="$sources==1">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Gedcom id="@FAMC">
<Text style="label1"> <var var="I18N::translate('daughter of')" /></Text>
<Text style="name"> <GetPersonName id="@HUSB" /> </Text>
<Gedcom id="@HUSB">
<Gedcom id="@FAMS:@WIFE">
<Text style="label1"> <var var="I18N::translate('and')" /></Text>
</Gedcom>
</Gedcom>
<Text style="name"> <GetPersonName id="@WIFE" /> </Text>
</Gedcom>
</Gedcom>
</if>
</if>
<if condition="$gender=='female'">
<Gedcom id="MARR">
<SetVar name="marrExists" value="true" />
<if condition="$printPronoun=='true'" >
<Text style="label1"> <var var="I18N::translate('She married')" /> </Text>
</if>
<if condition="$printPronoun=='false'" >
<Text style="label1"> <var var="I18N::translateContext('FEMALE', 'married')" /> </Text>
</if>
<SetVar name="printPeriod" value="true" />
<if condition="$sources==1">
<RepeatTag tag="MARR:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
</if>
</Gedcom>
<if condition="$marrExists=='true'">
<Gedcom id="@HUSB">
<Text style="name"> <GetPersonName id="" /> </Text>
<if condition="$sources==1">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Gedcom id="@FAMC">
<Text style="label1"> <var var="I18N::translate('son of')" /></Text>
<Text style="name"> <GetPersonName id="@HUSB" /></Text>
<Gedcom id="@HUSB">
<Gedcom id="@FAMS:@WIFE">
<Text style="label1"> <var var="I18N::translate('and')" /></Text>
</Gedcom>
</Gedcom>
<Text style="name"> <GetPersonName id="@WIFE" /></Text>
</Gedcom>
</Gedcom>
</if>
</if>
<Gedcom id="MARR">
<Text style="label1"> <var var=" " /></Text>
<if condition="@DATE!=''">
<SetVar name="printPeriod" value="true" />
<Text style="label1"> <var var=" " /> <GedcomValue tag="DATE" level="2"/></Text>
</if>
<if condition="@PLAC!=''">
<SetVar name="printPeriod" value="true" />
<Text style="label1"> <var var="I18N::translate(' in ')" /> <GedcomValue tag="PLAC" level="2"/></Text>
</if>
</Gedcom>
<if condition="$printPeriod=='true'">
<Text style="label1">.</Text>
<SetVar name="printPronoun" value="true" />
</if>
<if condition="$marrExists=='true'">
<if condition="$gender=='male'">
<Gedcom id="@WIFE">
<SetVar name="printPeriod" value="false" />
<SetVar name="birtExist" value="false" />
<SetVar name="printPronoun" value="true" />
<Gedcom id="BIRT">
<if condition="$printPronoun=='true'">
<SetVar name="printPeriod" value="true" />
<Text style="label1"> <var var="I18N::translate('She was born')" /></Text>
<SetVar name="printPronoun" value="false" />
</if>
<SetVar name="birtExist" value="true" />
<if condition="$sources==1">
<RepeatTag tag="BIRT:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
</if>
<if condition="@DATE!=''">
<Text style="label1"> <var var=" " /> <GedcomValue tag="DATE" level="2" /></Text>
</if>
<if condition="@PLAC!=''">
<Text style="label1"> <var var="I18N::translate(' in ')" /> <GedcomValue tag="PLAC" level="2" /></Text>
</if>
</Gedcom>
<Gedcom id="DEAT">
<if condition="$printPronoun=='true'">
<Text style="label1"> <var var="I18N::translate('She ')" /></Text>
<SetVar name="printPronoun" value="false" />
</if>
<SetVar name="printPeriod" value="true" />
<if condition="$birtExist=='true'">
<Text style="label1"> <var var="I18N::translate('and')" /></Text>
</if>
<Text style="label1"> <var var="I18N::translateContext('FEMALE', 'died')" /> </Text>
<if condition="$sources==1">
<RepeatTag tag="DEAT:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
</if>
<if condition="@DATE!=''">
<Text style="label1"> <var var=" " /> <GedcomValue tag="DATE" level="2" /></Text>
</if>
<if condition="@PLAC!=''">
<Text style="label1"> <var var="I18N::translate(' in ')" /> <GedcomValue tag="PLAC" level="2" /></Text>
</if>
</Gedcom>
<if condition="$printPeriod=='true'">
<Text style="label1">.</Text>
<SetVar name="printPronoun" value="true" />
</if>
</Gedcom>
</if>
<if condition="$gender=='female'">
<Gedcom id="@HUSB">
<SetVar name="printPronoun" value="true" />
<SetVar name="printPeriod" value="false" />
<SetVar name="birtExist" value="false" />
<Gedcom id="BIRT">
<SetVar name="printPeriod" value="true" />
<if condition="$printPronoun=='true'">
<Text style="label1"> <var var="I18N::translate('He was born')" /></Text>
<SetVar name="printPronoun" value="false" />
</if>
<SetVar name="birtExist" value="true" />
<if condition="$sources==1">
<RepeatTag tag="BIRT:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
</if>
<if condition="@DATE!=''">
<Text style="label1"> <var var=" " /> <GedcomValue tag="DATE" level="2" /></Text>
</if>
<if condition="@PLAC!=''">
<Text style="label1"> <var var="I18N::translate(' in ')" /> <GedcomValue tag="PLAC" level="2" /></Text>
</if>
</Gedcom>
<Gedcom id="DEAT">
<if condition="$printPronoun=='true'">
<Text style="label1"> <var var="I18N::translate('He ')" /></Text>
<SetVar name="printPronoun" value="true" />
</if>
<SetVar name="printPeriod" value="true" />
<if condition="$birtExist=='true'">
<Text style="label1"> <var var="I18N::translate('and')" /></Text>
</if>
<Text style="label1"> <var var="I18N::translateContext('MALE', 'died')" /> </Text>
<if condition="$sources==1">
<RepeatTag tag="DEAT:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
</if>
<if condition="@DATE!=''">
<Text style="label1"> <var var=" " /> <GedcomValue tag="DATE" level="2" /></Text>
</if>
<if condition="@PLAC!=''">
<Text style="label1"> <var var="I18N::translate(' in ')" /> <GedcomValue tag="PLAC" level="2" /></Text>
</if>
</Gedcom>
<if condition="$printPeriod=='true'">
<Text style="label1">.</Text>
<SetVar name="printPronoun" value="true" />
</if>
</Gedcom>
</if>
</if>
</Gedcom>
</RepeatTag>
</TextBox>
<RepeatTag tag="FAMS">
<Gedcom id="@FAMS">
<if condition="@CHIL!=''">
<SetVar name="numberOfChildren" value="0" />
<RepeatTag tag="CHIL">
<Gedcom id="@CHIL">
<SetVar name="numberOfChildren" value="$numberOfChildren+1" />
</Gedcom>
</RepeatTag>
<TextBox height="20" left="25" newline="1">
<if condition="$numberOfChildren==1">
<Text style="label1"><var var="I18N::translate('Child of ')" /></Text>
</if>
<if condition="$numberOfChildren>1">
<Text style="label1"><var var="I18N::translate('Children of ')" /></Text>
</if>
<Text style="name"><GetPersonName id="@HUSB" /></Text>
<Text style="label1"> <var var="I18N::translate('and')" /> </Text>
<Text style="name"><GetPersonName id="@WIFE" /></Text>
<Text style="label1">:</Text>
</TextBox>
<SetVar name="familyChildNumber" value ="1" />
<RepeatTag tag="CHIL">
<Gedcom id="@CHIL">
<if condition="$familyChildNumber==1"><SetVar name="familyChildRoman" value="i" /></if>
<if condition="$familyChildNumber==2"><SetVar name="familyChildRoman" value="ii" /></if>
<if condition="$familyChildNumber==3"><SetVar name="familyChildRoman" value="iii" /></if>
<if condition="$familyChildNumber==4"><SetVar name="familyChildRoman" value="iv" /></if>
<if condition="$familyChildNumber==5"><SetVar name="familyChildRoman" value="v" /></if>
<if condition="$familyChildNumber==6"><SetVar name="familyChildRoman" value="vi" /></if>
<if condition="$familyChildNumber==7"><SetVar name="familyChildRoman" value="vii" /></if>
<if condition="$familyChildNumber==8"><SetVar name="familyChildRoman" value="viii" /></if>
<if condition="$familyChildNumber==9"><SetVar name="familyChildRoman" value="ix" /></if>
<if condition="$familyChildNumber==10"><SetVar name="familyChildRoman" value="x" /></if>
<if condition="$familyChildNumber==11"><SetVar name="familyChildRoman" value="xi" /></if>
<if condition="$familyChildNumber==12"><SetVar name="familyChildRoman" value="xii" /></if>
<if condition="$familyChildNumber==13"><SetVar name="familyChildRoman" value="xiii" /></if>
<if condition="$familyChildNumber==14"><SetVar name="familyChildRoman" value="xiv" /></if>
<if condition="$familyChildNumber==15"><SetVar name="familyChildRoman" value="xv" /></if>
<if condition="$familyChildNumber==16"><SetVar name="familyChildRoman" value="xvi" /></if>
<if condition="$familyChildNumber==17"><SetVar name="familyChildRoman" value="xvii" /></if>
<if condition="$familyChildNumber==18"><SetVar name="familyChildRoman" value="xviii" /></if>
<if condition="$familyChildNumber==19"><SetVar name="familyChildRoman" value="xix" /></if>
<if condition="$familyChildNumber==20"><SetVar name="familyChildRoman" value="xx" /></if>
<SetVar name="showChildNumber" value="false" />
<RepeatTag tag="FAMS">
<Gedcom id="@FAMS:@CHIL">
<SetVar name="showChildNumber" value="true" />
</Gedcom>
</RepeatTag>
<TextBox left="25" height="20" width="25">
<if condition="$showChildNumber=='true'">
<Text style="name"><var var="childNumber" />.</Text>
<SetVar name="childNumber" value="$childNumber + 1" />
</if>
</TextBox>
<TextBox height="20" newline="1">
<Text style="label1"><var var="familyChildRoman" /></Text>
<Text style="name"> <GetPersonName id="" /> </Text>
<if condition="$sources==1">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
<Text style="label1"> </Text> <!-- @@ -->
</if>
<Gedcom id="BIRT">
<Text style="label1"> <var var="I18N::translate('Birth')" />: <GedcomValue tag="DATE" level="2"/> <GedcomValue tag="PLAC" level="2"/></Text>
</Gedcom>
<SetVar name="showMarraige" value="T" />
<RepeatTag tag="FAMS">
<Gedcom id="@FAMS:@CHIL">
<SetVar name="showMarraige" value="F" />
</Gedcom>
</RepeatTag>
<if condition="$showMarraige=='T'">
<SetVar name="gender" value="male" />
<if condition="@SEX=='F'">
<SetVar name="gender" value="female" />
</if>
<RepeatTag tag="FAMS">
<Gedcom id="@FAMS">
<Text style="label1"> <var var="I18N::translate('Marriage')" />: </Text>
<if condition="$gender=='male'">
<Text style="name"><GetPersonName id="@WIFE" /></Text>
</if>
<if condition="$gender=='female'">
<Text style="name"><GetPersonName id="@HUSB" /></Text>
</if>
<Gedcom id="MARR">
<if condition="@DATE!=''">
<Text style="label1">, <GedcomValue tag="DATE" level="2" /></Text>
</if>
<if condition="@PLAC!=''">
<Text style="label1">, <GedcomValue tag="PLAC" level="2" /></Text>
</if>
</Gedcom>
</Gedcom>
</RepeatTag>
</if>
<Gedcom id="DEAT">
<Text style="label1"> <var var="I18N::translate('Death')" />: <GedcomValue tag="DATE" level="2"/> <GedcomValue tag="PLAC" level="2"/></Text>
</Gedcom>
</TextBox>
</Gedcom>
<SetVar name="familyChildNumber" value="$familyChildNumber+1" />
</RepeatTag>
</if>
</Gedcom>
</RepeatTag>
<SetVar name="personNumber" value="$personNumber + 1" />
<TextBox height="10" newline="1" padding="0"/>
</if>
</Relatives>
<!-- if the sources were on, print the source citations as footnotes -->
<if condition="$source_exist==1">
<NewPage/>
<TextBox newline="1">
<Text style="subheader"><var var="I18N::translate('Sources')" /><br /><br /></Text>
<FootnoteTexts />
</TextBox>
</if>
</Body>
<Footer>
<Cell align="rightrtl" newline="1" style="date"><Now /></Cell>
</Footer>
</Doc>
</Report>