FpML Issues Tracker
closed
Minor
Always
Validation Rules
Admin
None
Summary
The rules fx-26 has an unhandled condition.
There is a test on fxSingleLegvalueDate, but this field may not exist. The outcome is undefined if the field does not exist. According to the FpML Rules Specification the outcome must always evaluate to 1 boolean result for each test.
The rule today: " fx-26 (Mandatory) Context: FxSwap (complex type) [two fxSingleLeg elements exist] The fxSingleLegvalueDate for each one of the legs must be different. Test cases: [Invalid] "
The complex type FXLeg has valueDate within an xsd:choice structure:
"
The rule should be change to it works in all circumstances.
Also, according to the FpML Specification for writing Rules, the rule should be written out using the approved mathemtical notation:
" fx-26 (Mandatory) Context: FxSwap (complex type)[count(fxSingleLeg) = 2] fxSingleLeg[1]/valueDate != fxSingleLeg[2]/valueDate "
In addition the rule needs a comment to make its intent clear.
Notes:
lyteck
09/16/08 7:21 pm
ValWG (2008-09-16): agreed to add new condition that two fxSingleLegvalueDate must exist
lyteck
09/30/08 8:12 pm
Added condition:
[Two fxSingleLegvalueDate elements exist]
matthew
09/30/08 8:18 pm
The condition added was: “[Two fxSingleLegvalueDate elements exist]”
The correct condition is: “[Two fxSingleLeg elements exist]”
lyteck
09/30/08 8:23 pm
“[Two fxSingleLeg elements exist]” already existed before
“[Two fxSingleLegvalueDate elements exist]” was added (point of this issue)
Please reopen if still incorrect.
matthew
09/30/08 8:33 pm
Lyteck wrote to reopen if still incorrect – so reopening.
In XPath the context is: //element(*, FxSwap)[count(fxSingleLeg) eq 2]
The point is that we don’t need to check for the existence of valueDate.
matthewdr
10/07/08 1:50 pm
Accepting upon testing.