FpML Issues Tracker
closed
Minor
Always
Validation Rules
Admin
None
Summary
The example valid XML document valid-cd-38-02.xml is not valid against the rule.
Rule cd-38 states today: " Context: ReferencePool (complex type) cd-38 (Mandatory) The sum of referencePoolItem/constituentWeight/basketPercentage is equal to 1 or no referencePoolItem/constituentWeight exists. "
If any of the //constituentWeight is described using //constituentWeight/openUnit or //constituentWeight/basketAmount then it will not equal the value "1" and constituent weight will exist.
Based on my experience, I think it is the rule not the example that is incorrect.
Notes:
matthewdr
03/11/08 2:45 pm
There needs to be a new rule to ensure that constituent weight for a reference pool as one way of doing consistuent weight.
New rule:
”
Context: ReferencePool (complex type)
cd-xx (Mandatory)
All referencePoolItem/constituentWeight must have the same name of child element.
”
matthewdr
03/11/08 2:46 pm
Agreed at VWG to add as cd-44. Andrew Jacobs will submit a proposal with new examples from Marc.
The example needs to be changed to comply with cd-38.
iyermakova
03/12/08 5:38 pm
The example valid-cd-38-02.xml is changed to comply with cd-38 rule.
It has been committed to 4-4 (trunk) and 5-0 (branches/FpML-5-0)
matthewdr
04/08/08 11:55 am
The new additional rule still needs to be added to guarantee consistency.
At the moment there could be a mix of ways to describe constituent weight which would mean cd-38 may not hold universally.
matthewdr
04/08/08 1:55 pm
Agreed at the VWG to authorize Marc to implement.
mgratacos
04/21/08 5:25 pm
New rule cd-44 has been added to the trunk and 5.0 branch. An invalid test case for this rule has also been added.