[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FpML-VAL Syntax




Today there is no convention or guidance on how to express conditions to FpML Validation Rules. The VWG should recommend a way to express a condition, so that the product WGs can express conditions on the firing of a rule.

The example sent by Marc uses the XPath way of expressing conditions, by placing the condition in square braces. Multiple conditions are expressed by a sequence of conditions. The XPath way of expressing conditions is well defined and widespread. I prefer to use XPath for these simple conditions rather than invent our own syntax. XPath is suitable because it is precise, but not formal.

Matthew Rawlings
+44 7917 596 827



"Marc Gratacos" <MGratacos@xxxxxxxx>
Sent by: valwg@xxxxxxxx

16/05/2008 14:51

Please respond to
valwg@xxxxxxxx

To
<valwg@xxxxxxxx>
cc
<andrew.p.parry@xxxxxxxxxxxx>
Subject
FpML-VAL Syntax





All,
 
A number of suggested improvements to the current validation rules introduce a different approach from how the rules are currenty defined. As example, the way contexts are stated in this new approach is much more precise containing evaluations and closer to a formal implementation but it moves away from the current simple pseudo-english expressions.
 
Example of proposed solution (http://www.fpml.org/issues/view.php?id=686):
Context: BrokerEquityOption (complex type)[fn:exists(numberOfOptions)][exists(equityPremium/paymentAmount)][exists(equityPremium/pricePerOption)][val:same-currency((equityPremium/paymentAmount,equityPremium/pricePerOption))]
eqd-25 (Mandatory)
equityPremium/pricePerOption/amount * numberOfOptions eq equityPremium/paymentAmount/amount.
Comment: This is equivalent to eqd-20, but for brokerEquityOption, where there is no optionEntitlement.

I'd like to ask the group how we should express rules going forward.
 
Kind Regards,
Marc  
 
 
 
************************************************************************************************************************** The information contained in either this email and, if applicable, the attachment, are confidential and are intended only for the recipient. The contents of either the email or the attachment may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient(s), any use, disclosure, copying, or distribution is prohibited and may be unlawful. If you have received this communication in error, please notify us by e-mail at isda@xxxxxxxx then delete the e-mail and all attachments and any copies thereof. This communication is part of an ISDA process and is not intended for unauthorized use or distribution. **************************************************************************************************************************


This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.