FpML Issues Tracker

620: CD PreCondition ShortForm is ambiguous

March 1, 2008

closed

Minor

Always

Validation Rules

Admin

mgratacos

Summary

The CD 'Pre-Condition' in the Validation Rules is ambiguous.

Today's text: " Precondition: ShortForm (context: Trade) (context: Contract) documentation/masterConfirmation exists or documentation/contractualMatrix exists or documentation/contractualTermsSupplement exists and begins with substring iTraxx or CDX. "

The two most sensible interpretations of this are: Interepretation 1: exists(matches(//documentation/(masterConfirmation|contractualMatrix|contractualTermsSupplement), "^(iTraxx|CDX)"))

Interepretation 2: exists(//documentation[masterConfirmation|contractualMatrix|contractualTermsSupplement[matches (., "^(iTraxx|CDX)")]])

I believe the intended meaning is the second interpretation.

To make this unambiguous I propose changing the text to: " Precondition: ShortForm (context: Trade) (context: Contract) documentation/masterConfirmation exists, or documentation/contractualMatrix exists, or documentation/contractualTermsSupplement exists and documentation/contractualTermsSupplementbegins with string iTraxx or CDX. "

Notes:

  • mgratacos

    03/20/08 11:32 am

    This has been committed to the trunk and 5.0 branch.

  • Leave an update

    You must be logged in to post an update.