701: eqd-28 is missing an else clause

eqd-28 is missing an else clause. The rule today is: ” eqd-28 (Mandatory) Context: EquityMultipleExercise (complex type) If integralMultipleExercise is present, (minimumNumberOfOptions / integralMultipleExercise) must be a positive integer. Comment: When integral multiple exercise is present, minimum number of options exercised must be a positive integer multiple. ” The solution is to elevate the “if” … Continued

700: eqd-15 missing two else clauses

The rule eqd-15 is missing two else clauses. The problem is that this will lead to no result in some cases. The rule today is: ” Context: EquityExerciseValuationSettlement (complex type) eqd-15 (Mandatory) If equityValuation/valuationDate/adjustableDate exists, and equityEuropeanExercise exists, then equityValuation/valuationDate/adjustableDate/unadjustedDate must be equal to equityEuropeanExercise/expirationDate/adjustableDate/unadjustedDate. ” The proposed solution is to move the “if” clauses … Continued

699: eqd-6 is missing an else clause

eqd-6 is missing an else clause. The problem is that this causes eqd-6 to sometimes fail to produce a result. The rule today is: ” Context: equityBermudaExercise (complex type) eqd-6 (Mandatory) If latestExerciseTimeType is equal to SpecificTime then latestExerciseTime must be present. ” The proposed solution is to add the condition to the context: ” … Continued

698: eqd-3 is missing an else clause

eqd-3 is missing an else clause. The problem is that this causes eqd-3 to sometimes fail to produce a result. The rule today is: ” Context: EquityAmericanExercise (complex type) eqd-3 (Mandatory) If latestExerciseTimeType is equal to SpecificTime then latestExerciseTime must be present. ” The proposed solution is to add the condition to the context: ” … Continued

697: consistency of “if then else”

The structure “if then else” should be applied consistently. At the moment three rules deviate from this and use “if then otherwise”. All rules should use “if then else” consistently. The rules to fix are: Searching for: otherwise rules-english-ird.xml(17): The regular period of a set of calculation period dates is the period between a start … Continued

696: ird-29 missing else clause

ird-29 has an if statement without an else clause. This means the result is undefined in some circumstances. The rule today is: ” Context: Calculation (complex type) ird-29 (Mandatory) If compoundingMethod exists then fixedRateSchedule must not be present. ” The proposal is to add a condition to the context: ” Context: Calculation (complex type)[exists(compoundingMethod)] ird-29 … Continued

695: ird-25 missing else clause

The rule ird-25 is missing an else clause. The value is undefined in the case of step elements existing. The rule today is: ” Context: Schedule (complex type) ird-25 (Mandatory) If there are no step elements then initialValue must be non-zero. ” The proposed solution is to add a condition to the context. The rule … Continued

692: ird-28 written form could be written more clearly

ird-28 could be written more clearly and consistently with the other rules. The rule today is: ” Context: MandatoryEarlyTermination (complex type) ird-28 (Mandatory) In cashSettlement/cashSettlementValuationDate/dateRelativeTo, the @href attribute must point to the @id attribute of mandatoryEarlyTerminationDate. ” To be consistent with the other rules, the form should be: ” Context: MandatoryEarlyTermination (complex type) ird-28 (Mandatory) … Continued