FpML Issues Tracker

646: ird-47 Use XPath for axis

March 7, 2008

closed

Minor

Always

Validation Rules

Admin

None

Summary

ird-47 doesn't use XPath for axis.

The Validation Architecture requires paths to be given using XPath for axis in the body of the rules.

The rule should be changed to use XPath for axis.

The rule today: " ird-47 (Mandatory) In cashSettlement/cashSettlementPaymentDate/relativeDate/dateRelativeTo, the @href attribute must point to the @id attribute of americanExercise, bermudaExercise or europeanExercise, whichever one is present. "

The proposed solution: " ird-47 (Mandatory) In cashSettlement/cashSettlementPaymentDate/relativeDate/dateRelativeTo/@href must equal americanExercise/@id, bermudaExercise/@id or europeanExercise/@id, whichever one is present. "

Which in XPath (as per the VWG's rules) can be expressed as: " ird-47 (Mandatory) In cashSettlement/cashSettlementPaymentDate/relativeDate/dateRelativeTo/@href must equal (americanExercise|bermudaExercise|europeanExercise)/@id. "

Notes:

  • mgratacos

    03/25/08 2:34 pm

    Val WG: agreed first solution

    ird-47 (Mandatory)
    In cashSettlement/cashSettlementPaymentDate/relativeDate/dateRelativeTo/@href must equal americanExercise/@id, bermudaExercise/@id or europeanExercise/@id, whichever one is present.

    OR operators are too technical for a business analyst to read.

  • matthewdr

    04/08/08 1:54 pm

    Agreed at the VWG to authorize Marc to implement.

  • mgratacos

    04/21/08 3:49 pm

    This has been committed to the trunk and 5.0 branch.

  • Leave an update

    You must be logged in to post an update.