FpML Issues Tracker

777: Parameters need $ to prevent them being confused with XPaths

August 12, 2008

closed

Minor

Always

Validation Rules

Admin

None

Summary

As per the specifications, parameters need $ symbols to prevent them being confused with XPaths. This may need clarifying in the specification.

Current example: " Function: different-BusinessCenters The combination of businessCenter and businessCenter/@businessCenterScheme must be distinct for each businessCenter. * parameter: businessCenter (fpml:BusinessCenter) (cardinality: min=1) * test: All businessCenter must not be the same and all businessCenter/@businessCenterScheme must not be the same. * result: true/false (boolean) "

This should be: " Function: different-BusinessCenters The combination of businessCenter and businessCenter/@businessCenterScheme must be distinct for each businessCenter. * parameter: $businessCenter (fpml:BusinessCenter) (cardinality: min=1) * test: All $businessCenter must not be the same and all businessCenter/@businessCenterScheme must not be the same. * result: true/false (boolean) "

There are some other problems with this function, but we can overlook those.

Notes:

  • lyteck

    08/20/08 7:33 pm

    – noted. The use of $ to prefix parameters was clearly documented in the specification.
    – Matthew’s example different-BusinessCenters() no longer exists after rewriting the rule (per issue 720)
    – However, function same-currency() has been corrected using $. eqd-19, eqd-20, eqd-25 were updated to use format [same-currency(param1, param2)= True]. Please review.
    – Should overlapping condition=SameCurrency be deleted?

  • matthew

    08/20/08 8:26 pm

    Closed after reviewing resolution.

  • Leave an update

    You must be logged in to post an update.