All,this is mainly attached for curiosity value, though it's a useful reference - because any references to elements and attributes in the schema are forced to be valid in the rule text.
While doing those this morning I noticed that Andrew was actually quite precise in the formulation of the textual rules. The only differences are additional checks whether optional elements are present, e.g. fx-37:
Text:The value of fxAverageRateOption/expiryDateTime/expiryDate should be after tradeHeader/tradeDate
NRL:If fxAverageRateOption.expiryDateTime.expiryDate is present then fxAverageRateOption.expiryDateTime.expiryDate is after tradeHeader.tradeDate
Whether you want to take these additional guard conditions on board or whether you consider them excessive detail is up to you.
Best regards, Christian
Attachment:
FX Rules NRL.doc
Description: MS-Word document