FpML Issues Tracker
closed
Minor
Always
Validation Rules
Admin
None
Summary
The context of cd-3b needs to change to reflect changes in the schema.
The rule today is: " Context: Trade (complex type) cd-3b (Mandatory) Preconditions: ISDA1999 The content of documentation/ContractualTermsSupplement must not begin with the string ISDA2003Credit. "
However ContractualTermsSupplement is a repeating element following recent schema changes:
"
The context should be changed to the ContractualTermsSupplement if we keep the VWG's current way of writing preconditions, such as "ISDA1999".
Alternatively, if we fix all the issues around cd-3b we end up with the XQuery:
(for $contractualTermsSupplement as element(*, Trade) in //element(*, ContractualTermsSupplement)[$iSDA1999PreCondition] return val:pretty-result(xs:NMTOKEN("cd-3b"), xs:boolean(not(starts-with($contractualTermsSupplement/type, "ISDA2003Credit"))), $contractualTermsSupplement, "See issue: http://www.fpml.org/issues/view.php?id=709"))
Writing this out in FpML VWG's stylized English gives: " Context: ContractualTermsSupplement(complex type) cd-3b (Mandatory) Preconditions: ISDA1999 The element type must not begin with the string ISDA2003Credit. "
Notes:
iyermakova
05/24/08 12:47 am
The Rule cd-3b (trunk) and cd-3 (branchesFpML-5-0) has been updatedtype must not begin with the string ISDA2003Credit”
”
Context: ContractualTermsSupplement(complex type)
cd-3b (Mandatory)
Preconditions: ISDA1999
The content of