FpML Issues Tracker
closed
Major
Always
Architecture
Admin
andrew
Summary
The interepretation of the CreditCurve complex type is brittle to the element order. There are two elements inside CreditCurve that are different elements but have the same name. The name of these two elements is "currency".
Knowing which currency element is which is only possible by knowing the order of the elements. This is completely legal XML and XML Schema, but is it wise for us to rely on this because it may be brittle to any change.
I propose that we add a rule to the FpML Architecture that FpML schemas should not rely on element order for interpretation. This can be added to the new Architecture for implementation in 5.x.
Notes:
matthewdr
02/28/08 2:45 pm
Agreed at the AWG on 28th February 2008 that AJ will update the Architecture specification to make this a principle.
mgratacos
01/22/09 5:48 pm
The Architecture Specification (version 3.0 and 2.2) Section 2.3.9.3 Ordering within Repetitions states:
…
Processing applications MUST NOT assume that the order of data in a document is significant if it contains sufficient business values to allow an ordering to derived during processing
…