HomeAbout FpML®SpecificationsDocumentsWorking Groups & CommitteesToolsFpML® ServicesJoin UsContact UsIssues Forum

The FpML Issues Tracker is designed to facilitate public interaction in the standard.
By registering to the Issue Tracker you will be able to submit corrections and comments, generate reports, and view the complete issues archive for FpML.


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000636 [FpML] Validation Rules minor always 2008-03-03 21:36 2010-01-21 17:45
Reporter matthewdr View Status public  
Assigned To mgratacos
Priority normal Resolution open  
Status assigned Target Version 4.8 First Working Draft 2010-04-16 (build 1) Product Version 4.4 Third Working Draft 2007-12-24
Summary 0000636: cd-33 is an algorithm not a rule
Description cd-33 is written partially in the form of an algorithm. It should be rewritten in the form of a rule (a constraint).

The rule today is:
"
Context: PeriodicPayment (complex type)
cd-33 (Mandatory)
If both firstPaymentDate and lastRegularPaymentDate are present, then lastRegularPaymentDate must fall precisely on a date reachable by adding an integer multiple of the period in paymentFrequency to firstPaymentDate.
"

I propose the following rewrite:
"
Context: PeriodicPayment (complex type)
cd-33 (Mandatory)
If firstPaymentDate exists and lastRegularPaymentDate exits, then
the duration resulting from lastRegularPaymentDate minus the firstPaymentDate, modulo by the paymentFrequency duration must be zero.
"

This solves the problem except for where the Period Multiplier is a Term.
/FpML/trade/creditDefaultSwap/feeLeg/periodicPayment/paymentFrequency/period["T"]

This then requires us to look at the Effective Date and Termination Date to know the Term, which requires the scope to come up a a few 'notches' on the Document. See issue 0000610 for a discussion of this. The problem is that there is no terminationDate on a CDS.

Additional Information
Tags No tags attached.
XML Tool Type
Attached Files

- Relationships
related to 0000664assigneddanieldui cd-33 incorrectly assumes a fixed number of days in a month 

-  Notes
(0001105)
matthewdr (manager)
2008-03-03 22:07

Section 4.6.2 of the manual states:

"http://www.fpml.org/spec/fpml-4-4-4-wd-3/html/fpml-4-4-intro.html#s4.6.2
The evaluation of dates in the validation rules is not trivial. The optionality of including time offsets in date datatypes makes comparisons between dates more difficult since sometimes the result is indeterminate as any ISO8601 date is +/- 18 hours of timezone, and +/- 24 hours of day.

The Validation Working Group recommends the use of the XPath 2.0 date/time comparison rules which defines a definitive true / false value even for indeterminate calculations.

The Validation Working Group recommends that time offsets appear on all date/time values used in FpML documents."

Rule cd-33 contradicts those statements. Subtracting one xs:date from another xs:date will result in an xs:dayTimeDuration. Determining the difference in months between two dates is undefined because people may not agree on the answer.

For example, if the Period was "P3M" of type xs:duration of xs:yearMonthDuration it could not participate in arithmetic with an xs:dayTimeDuration, because the operands to the arithmetic operators would be of incompatible types.
(0001343)
mgratacos (administrator)
2008-04-22 13:38

In CDS, the terminationDate is named scheduledTerminationDate. If the period is a Term, the scheduledTerminationDate will be present, otherwise the example wouldn't make any business sense.
(0001354)
matthewdr (manager)
2008-04-29 13:31

Agreed to park this issue until Daniel's proposal for issue 0000664 is received. The problem is it proved impossible to discuss this issue as some in the group were focused in there discussions on the separate issue 0000664.

- Issue History
Date Modified Username Field Change
2008-03-03 21:36 matthewdr New Issue
2008-03-03 22:07 matthewdr Note Added: 0001105
2008-03-10 16:08 PamF-W Assigned To sheinrich => mgratacos
2008-04-22 13:38 mgratacos Note Added: 0001343
2008-04-29 13:31 matthewdr Note Added: 0001354
2008-12-15 10:57 matthewdr Relationship added related to 0000664
2010-01-21 17:45 lyteck Target Version => 4.8 First Working Draft (Publication Date TBA)