FpML Issues Tracker

616: cd-1 wrong context

March 1, 2008

closed

Minor

Always

Validation Rules

Admin

None

Summary

cd-1 today is:

" Context: Trade (complex type) cd-1 (Mandatory) Preconditions: SingleName tradeHeader/tradeDate must be before creditDefaultSwap/generalTerms/effectiveDate/unadjustedDate. "

The context changed to header to come into line with the Architecture. This is good. However the new Context isn't corrtect.

The context should be (in XPath): " Context: //element(*, Trade)[creditDefaultSwap] cd-1 (Mandatory) Preconditions: SingleName tradeHeader/tradeDate must be before creditDefaultSwap/generalTerms/effectiveDate/unadjustedDate. "

The rule doesn't apply to all Trades, only to CDS, so there should be a CDS guard on the context.

Notes:

  • matthewdr

    03/01/08 6:34 pm

    Updated the issue:

    Corrected the spelling to lower case “c” on “creditDefaultSwap”.

    Given an XPath example.

  • matthewdr

    05/22/08 9:17 am

  • lyteck

    07/16/08 4:08 pm

    rewritten using new specs, I propose:


    cd-1 (Mandatory)
    Context: Trade (complex type)
    [SingleName][if creditDefaultSwap/generalTerms/referenceInformation exists]
    tradeHeader/tradeDate must be before creditDefaultSwap/generalTerms/effectiveDate/unadjustedDate.

    the local condition [if… exists] implies the context is for CDS only.

  • lyteck

    07/25/08 8:17 pm

    fixed as proposed

  • matthewdr

    08/12/08 3:43 pm

    The problem with the solution is that the SingleName precondition exists both as an old-style precondition and as guard on the context. Only the current way of doing it should be present.

    Currently:

    cd-1 (Mandatory)
    Context: Trade (complex type)
    [SingleName] [if creditDefaultSwap/generalTerms/referenceInformation exists]
    tradeHeader/tradeDate must be before creditDefaultSwap/generalTerms/effectiveDate/unadjustedDate.

    It should be:

    cd-1 (Mandatory)
    Context: Trade (complex type)
    [creditDefaultSwap/generalTerms/referenceInformation exists]
    tradeHeader/tradeDate < creditDefaultSwap/generalTerms/effectiveDate/unadjustedDate. "

  • lyteck

    08/18/08 7:58 pm

    fixed as proposed by removing the SingleName condition.

  • matthewdr

    08/19/08 5:08 pm

    Closed after review.

  • Leave an update

    You must be logged in to post an update.