Changes between Version 8 and Version 9 of CMDI 1.2/Cues/Derived values


Ignore:
Timestamp:
02/14/14 13:43:14 (10 years ago)
Author:
teckart
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CMDI 1.2/Cues/Derived values

    v8 v9  
    2929The idea is to specify a generic solution for value derivation in CMDI 1.2 without specific restrictions on allowed functions or constants. This is particularly important as there was no broader evaluation of needed functionality (and the above mentioned examples are probably just a start). Furthermore additional extensions in the infrastructure that are needed to support this functionality can be developed at a later time (as long as they are not directly related to the CMDI 1.2 specification process).
    3030
    31 The CMD general component schema is extended with two additional (optional) attributes (AutoValueProcedure and AutoValueParameters) for the elements and attributes specification. AutoValueProcedure contains a URI of an external specification of a procedure or constant (like "getLanguageNameForISO639", "numericAddition" "filesize", "currentDate" etc.). A second attribute contains the arguments for these procedures as a list of XPath expressions (referencing other elements in the same component).
     31The CMD general component schema is extended with two additional (optional) attributes (AutoValueProcedure and AutoValueParameters) for the elements and attributes specification. AutoValueProcedure contains a URI of an external specification of a procedure or constant (like "getLanguageNameForISO639", "numericAddition" "filesize", "currentDate" etc.). A second attribute contains the arguments for these procedures as a list of XPath expressions (referencing other elements in the same file).
    3232
    3333==== Pros ====
     
    5353
    5454
    55 ==== Implementation examples ====
     55=== Implementation examples ===
    5656Derivation rules will be represented on the model level only (component specification -> XSD), not on the instance level.
    5757
    58 * Implementation in general component schema
     58==== Implementation in general component schema ====
    5959The specification of CMDI elements and attributes is extended by two optional attributes (AutoValueProcedure (xs:anyURI) and AutoValueParameters (xs:string)).
    6060{{{
     
    8181and similar for Attribute specifications
    8282
    83 * Implementation on component model level
    84 
     83==== Implementation on component model level ====
     84Example:
    8585{{{
    8686<CMD_Element name="Duration" AutoValueProcedure="http://www.clarin.eu/cmdi/autovalue/procedure/datediff" AutoValueParameter="../StartRangeDate ../EndRangeDate"/>