FpML Issues Tracker

648: invalid-ird-38-00.xml is schema invalid

March 7, 2008

closed

Minor

Always

Validation Rules

Admin

mgratacos

Summary

The validation invalid example invalid-ird-38-00.xml is schema invalid.

The validation rule examples should all be schema valid.

The problem is that the //fpml:initialStub and //fpml:finalStub are missing. Below is the offending snippet of XML.

Notes:

  • matthewdr

    03/11/08 2:38 pm

    Agreed at the VWG to fix the test case.

  • mgratacos

    03/13/08 5:38 pm

    This rule is now enforced by schema validation so it’s not possible to create an invalid test case that is schema valid. I propose to remove this example or to leave it as it is.

  • mgratacos

    03/13/08 5:41 pm

    Issue closed leaving the example as it is. It should be removed in version 5.0 since the rule has been deprecated in 4.4.

  • matthewdr

    03/14/08 9:25 am

    I just looked in the trunk and it is not marked as deprecated in the 4.4 series. Certainly it wasn’t deprecated in 4.4 WD3 and nothing has changed since.

    The Subversion file I checked:
    https://dedicated.fpml.org/svn/fpml/trunk/src/validation/rules-english-ird.xml

    The definition of ird-38 in that file:


    StubCalculationPeriodAmount
    Either initialStub or finalStub must be present.






    What it should be:


    Context: Discounting; Description: If discountRate is absent then discountRateDayCountFraction must also be absent. Rationale for deprecation: the rule has been replaced by a schema constraint.
    StubCalculationPeriodAmount
    Either initialStub or finalStub must be present.






  • mgratacos

    03/14/08 11:08 am

    Matthew,

    Yes, you were right and the rule was not deprecated even though it was approved by the IRDWG. This has been fixed in the trunk and 5.0 branch.

    Thanks,
    Marc

  • matthewdr

    03/14/08 11:29 am

    I confirm this is correct. I tested it.

  • Leave an update

    You must be logged in to post an update.