Changes between Version 8 and Version 9 of CMDI 1.2/Cues/Derived values
- Timestamp:
- 02/14/14 13:43:14 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CMDI 1.2/Cues/Derived values
v8 v9 29 29 The 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). 30 30 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).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 file). 32 32 33 33 ==== Pros ==== … … 53 53 54 54 55 === = Implementation examples ====55 === Implementation examples === 56 56 Derivation rules will be represented on the model level only (component specification -> XSD), not on the instance level. 57 57 58 * Implementation in general component schema 58 ==== Implementation in general component schema ==== 59 59 The specification of CMDI elements and attributes is extended by two optional attributes (AutoValueProcedure (xs:anyURI) and AutoValueParameters (xs:string)). 60 60 {{{ … … 81 81 and similar for Attribute specifications 82 82 83 * Implementation on component model level 84 83 ==== Implementation on component model level ==== 84 Example: 85 85 {{{ 86 86 <CMD_Element name="Duration" AutoValueProcedure="http://www.clarin.eu/cmdi/autovalue/procedure/datediff" AutoValueParameter="../StartRangeDate ../EndRangeDate"/>