479: CD preconditions are missing a context

The CD preconditions are missing a context. For example the “SingleName” precondition. The standard says “The following preconditions are always to be executed relative to the root of the FpML document being validated. The context of the rule is NOT carried through to the precondition.”, but the precondition has a path that doesn’t exist inside … Continued

478: shared-16 context error on path

“Context: TradeSide (complex type) shared-16 (Mandatory) For party/@href anywhere within the tradeSide element, href shall match the @id attribute of a FpML/party element.” “FpML/part” is not within the given context. Either the context or the path needs changing.

477: shared-11 Path to tested elements is incorrect

Rules shared-11 states: “Context: Trade (complex type) shared-11 (Mandatory) If businessDateRange exists within any descendant element of the trade, then businessCentersReference/@href, if present, must match some businessCenters/@id within the same trade.” The problem with this is that “businessCentersReference/@href” and “businessCenters/@id” are not in the context of “//element(*, Trade)”, they are deeper descendants. I rewrote the … Continued

476: valid-shared-7-01.xml example is broken

The example document valid-shared-7-01.xml does not test rule shared-7. The rule is: Context: BermudaExercise (complex type) shared-7 (Mandatory) earliestExerciseTime < latestExerciseTime, if latestExerciseTime exists. Yet the example does not contain a latestExerciseTime.

475: error in Path on constraint shared-6

shared-6 is missing the full path to the time values. Currently the rule is: Context: AmericanExercise (complex type) shared-6 (Mandatory) earliestExerciseTime < latestExerciseTime, if latestExerciseTime exists. It should be: (for $americanExercise as element(*, AmericanExercise) in //element(*, AmericanExercise)[latestExerciseTime] return ) The difference is the “/hourMinutetime” on each path.

474: Validation example should state where they are invalid

The Validation examples should state where they are invalid. For example invalid-shared-4-01.xml triggers rule triggers shared-4 twice. Once it is valid and once it is invalid, but it does not state where. Context: RelativeDateOffset (complex type) shared-4 (Mandatory) If the dayType is Business then the businessDayConvention should be NONE.

471: Link the Rule definitions to the the test cases instead of fragments.

———————————————————————- mgratacos – 2007-08-23 17:48 ———————————————————————- The only html documents in the source directory of the repository were the fragments documents (part of the validation documentation). The Validation Working Group decided not to mantain these files anymore and link directly to the appropriate test cases (xml files).

470: valid-eqd-01.xml example breaks rule eqd-23

Rule eqd-23 states: Context: EquityDerivativeBase (complex type) eqd-23 (Mandatory) equityEffectiveDate >= ../../tradeHeader/tradeDate Example valid-eqd-01.xml breaks this rule because it does not have an equityEffectiveDate. The field equityEffectiveDate inside the complexType EquityOption is optional. Therefore rule eqd-23 does not make sense when equityEffectiveDate is not present.