FpML Issues Tracker
closed
Minor
Always
Validation Rules
Admin
None
Summary
The namespace declaration is missing for the XML Schema types in the FpML Validation Rules.
For example cd-4b states: " cd-4b (Mandatory) Preconditions: ISDA2003 Every documentation/ContractualTermsSupplement must not begin with the string ISDA1999Credit. "
The term "string" in this rule is the XML Schema string which is defined in the namespace "http://www.w3.org/2001/XMLSchema" which is usually prefixed as "xs" or "xsd".
The solution is to define the namespace in the namespace section in its current location at the top of the rules page:
" Namespaces
default element namespace = "http://www.fpml.org/2007/FpML-4-4" declare namespace xsd = "http://www.w3.org/2001/XMLSchema" "
Then the rule could say:
" cd-4b (Mandatory) Preconditions: ISDA2003 Every documentation/ContractualTermsSupplement must not begin with the xsd:string ISDA1999Credit. "
At the moment, taking the rule literally, the definition of string would be in the FpML namespace. This is incorrect as string is defined in the XSD namespace.
This will become increasingly important as we add more namespaces, especially in FpML 5.x.
Notes:
lyteck
10/07/08 3:36 pm
implemented – see related issue 780
matthewdr
10/07/08 4:57 pm
Closing following testing.