XML files: Can't use compound conditions
Brought to you by:
canajun2eh,
yalnifj
ahnentafel.xml contains compound conditions like this one:
<PGVRif condition="(@desc=='Y') or (@DATE=='' and
@PLAC=='')">
Because my GEDCOM contains BIRT and DEAT records with
empty subordinate DATE records, the Ahnentafel report
generates garbage such as:
Jane Doe was bornShe died
or
John Hancock died
I tried to correct the problem by making the "born" and
"died" text conditional on the subordinate DATE and
PLAC records not being empty thus:
<PGRif condition="@DATE!='' or @PLAC!=''">
This doesn't work -- the condition always evaluates "true".
The problem appears to be that the PGVRif handler
doesn't recursively check for "@something".
Logged In: YES
user_id=1198414
Fixed in Future Branch CVS.
Replaced ./includes/reportpdf.php
Also changed ./reports/ahnentafel.xml so that the sequence
of events matches what happens in real life. Previously,
the sequence was birth, christening, death, burial,
marriage. Now, the sequence is birth, christening,
marriage, death, burial.