This section is the constraints that implement the Business Process definition and Messaging definition in the FpML 5.2 Reccomendation #1.
These constraints apply to the set of all known messages to validate the Business Process and Messaging definitions. The rules are tested by applying to the collection of all messages available, both sent and received. Each message is referred to as a "document", as this meets the requirement to use XPath 2.0 for paths.
The constraints are written as invariant rules that return "false" when they are failed and "true" when they are satisfied. The constraints are written to accommodate the open world assumption that there may be other messages that are not yet known about. For example messages that have not yet been sent or arrived are unknown.
A subset of constraints is identified as "Warnings". These constraints are used when knowledge from a message is expected but absent and it is impossible to distinguish between the messages being incorrect and the message not yet being known about. For example a Request might not yet be known about to match to a Response.
The constraints that are not "Warnings" are termed "Mandatory" constraints, which is consistent with all other rules.
default element namespace = http://www.fpml.org/spec/fpml-5-2-6-rec-2
namespace xs = http://www.w3.org/2001/XMLSchema