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.
| Anonymous | Login | Signup for a new account | 2010-09-06 21:48 UTC |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0000813 | [FpML] Validation Rules | minor | always | 2008-09-12 22:29 | 2010-03-22 14:25 | |||||||
| Reporter | matthewdr | View Status | public | |||||||||
| Assigned To | danieldui | |||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | assigned | Target Version | 4.8 First Working Draft 2010-04-16 (build 1) | Product Version | 5.0 Second Working Draft 2008-02-22 (build 2) | |||||||
| Summary | 0000813: fx-10 only works on Day Periods. | |||||||||||
| Description |
fx-10 is currently defined as: " fx-10 (Mandatory) Context: FxAverageRateObservationSchedule (complex type) The observation period defined by observationStartDate and observationEndDate should be an integer multiple of the calculationPeriodFrequency. " This calculation only makes sense where /FpML/trade/fxAverageRateOption/averageRateObservationSchedule/calculationPeriodFrequency/period is a day. It does not make sense to divide days by months, years, or anything else. The additional guard required is given below: " fx-10 (Mandatory) Context: FxAverageRateObservationSchedule (complex type)[calculationPeriodFrequency/period = fpml:PeriodEnum('D')] The observation period defined by observationStartDate and observationEndDate should be an integer multiple of the calculationPeriodFrequency. " The function fpml:PeriodEnum is the XPath function to construct an FpML PeriodEnum. The fpml namespace is needed because the Validation Rules set the default function namespace to be XPath 2, and this is in FpML not XPath2. There is a second issue that the text used doesn't define the terms such as: "observation period" and "integer multiple". Rewriting the text using the FpML Specification for writing rules gives, including the FpML mathemtical notation gives: " fx-10 (Mandatory) Context: FxAverageRateObservationSchedule (complex type)[calculationPeriodFrequency/period = fpml:PeriodEnum('D')] ((observationStartDate - observationEndDate) div xs:dayTimeDuration (concat('P', calculationPeriodFrequency/periodMultiplier, 'D'))) mod 1 eq 0 Comment: The duration between start and end of the periods must be an exact multiple of the period duration. " |
|||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| XML Tool Type | ||||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
Relationships |
||||||
|
||||||


