FpML Issues Tracker

951: eror and solution for eqd-8

June 15, 2009

closed

Minor

Always

Validation Rules

Admin

None

Summary

eqd-8 is today: "eqd-8 (Mandatory) English Description: Context: EquityBermudaExercise (complex type) All dates in bermudaExerciseDates/date must be after commencementDate/adjustableDate/unadjustedDate XPath Description: Context: EquityBermudaExercise (complex type) //bermudaExerciseDates/date gt commencementDate/adjustableDate/unadjustedDate "

There are two problems with the XPath: 1. There is potentially more than one exercise date, which needs to be handled. This can be handled with a "every" quanitification. 2. "//" refers to all descendants of the root node, whereas ".//" refers to all descendants of the context node. We want the latter in our constraint. We need to be more careful in distinguishing between our root node and our context node in our XPath statements. I am sure other problems will be found later.

The complete solution is: " every $date in .//bermudaExerciseDates/date satisfies $date gt commencementDate/adjustableDate/unadjustedDate "

In addition, please add the comment: " Every Bermuda exercise date must be after the commencementDate. "

For comparison, NRL doesn't have the XPath bugs, but introduces one of its own bugs by substituting "ge" for "gt": " Context: EquityBermudaExercise Rule "eqd-8" For each "date" in the collection of bermudaExerciseDates.date, the date is greater than or equal to EquityBermudaExercise.commencementDate.adjustableDate.unadjustedDate "

Notes:

  • matthewdr

    07/21/09 1:37 pm

    Discussed at the VWG today. Agreed to fix as proposed.

  • iyermakova

    07/21/09 8:27 pm

    Corrected XPath for eqd-8 and added a comment as proposed
    Committed the change to trunk/ (4-6) and branches 5-0

  • Leave an update

    You must be logged in to post an update.