FpML Issues Tracker

374: Architecture rule of href must point to a single type

May 22, 2007

closed

Minor

Always

Architecture

Admin

andrew

Summary

Add a rule to the architecture for 5.0 that states that each href must point to a single type.

Leave the modelling of the implementation to the Product and Process groups.

Notes:

  • andrew

    05/30/07 9:41 am

    Or to a common (possibly abstract) base type of the possible targets.

  • matthew

    05/30/07 11:14 am

    I agree with AJ. Pointing to a supertype of the possible targets is equally acceptable.

  • mgratacos

    06/05/07 5:01 pm

    I propose to add the following paragraph (between *) in section 3.1.1 of the Architecture Specification (it has been committed to the trunk – arch 2.1 Spec):

    An intra-document reference defines a link between data described in two different parts of the same document. The reference may refer to data defined either before or after the point of reference and the same data may be referred to many times.

    *A reference must point to a single target or to a common (possibly abstract) supertype of the possible targets in FpML. This principle is not enforced by XML Schema validation but it defines a design rule in order to have a clear implementation of intra-document references.*

    To participate in an intra-document reference the target element MUST have an attribute named ‘id’ with a type ID. If the element is only referenced sometimes then this attribute MAY be made optional. A referencing element MUST declare an IDREF attribute to hold the corresponding ID value.

  • Leave an update

    You must be logged in to post an update.