FpML Issues Tracker

837: ird-56 needs guards for optional elements

September 17, 2008

closed

Minor

Always

Validation Rules

Admin

lyteck

Summary

the constraint ird-56 needs guards on its optional fields.

The rule today is: " ird-56 (Mandatory) Context: InterestRateStream (complex type) The paymentDates/resetDatesReference/@href attribute = the resetDates/@id attribute. "

The proposed rules is: " " ird-56 (Mandatory) Context: InterestRateStream (complex type) [exists(paymentDates/resetDatesReference)][exists(resetDates)] The paymentDates/resetDatesReference/@href attribute = the resetDates/@id attribute. "

Without the guard the rule doesn't always evaluate.

Notes:

  • matthewdr

    10/21/08 2:02 pm

    Agreed at the VWG to implement:


    ird-56 (Mandatory)
    Context: InterestRateStream (complex type)
    [exists(paymentDates/resetDatesReference)][exists(resetDates)]
    paymentDates/resetDatesReference/@href attribute = resetDates/@id attribute.

  • mgratacos

    10/21/08 2:02 pm

    Add proposed guard.

  • MarkAddison

    10/21/08 2:10 pm

    Removed unnecessary attribute:


    ird-56 (Mandatory)
    Context: InterestRateStream (complex type)
    [exists(paymentDates/resetDatesReference)][exists(resetDates)]
    paymentDates/resetDatesReference/@href = resetDates/@id

  • lyteck

    10/23/08 4:01 pm

    implemented as last proposed.

  • matthewdr

    11/18/08 3:56 pm

    Reopening the issue because the agreed resolution was applied incorrectly. The rule is deprecated, but should still be correct until it is removed.

    The current rule in SVn is:
    Context: InterestRateStream;
    Condition: [exists(resetDates)];
    Description: The paymentDates/resetDatesReference/@href attribute = the resetDates/@id.

    This is missing one of the conditions.

  • lyteck

    11/24/08 10:10 pm

    added missing condition.

  • matthewdr

    12/09/08 3:38 pm

    Closed after testing.

  • Leave an update

    You must be logged in to post an update.