#530 XML files: Can't use compound conditions

Gerry Kroll

ahnentafel.xml contains compound conditions like this one:
<PGVRif condition="(@desc=='Y') or (@DATE=='' and

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
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".


  • Gerry Kroll

    Gerry Kroll - 2005-11-19

    Logged In: YES

    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.

  • Gerry Kroll

    Gerry Kroll - 2005-11-19
    • assigned_to: nobody --> canajun2eh
    • status: open --> closed-fixed
  • Gerry Kroll

    Gerry Kroll - 2005-12-01
    • status: closed-fixed --> open-fixed
  • Patrik Hansson

    Patrik Hansson - 2005-12-05
    • status: open-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks