Changes between Version 12 and Version 13 of CMDI 1.2/Cues/Display information
- Timestamp:
- 02/11/14 12:47:49 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CMDI 1.2/Cues/Display information
v12 v13 24 24 == Proposed solution == 25 25 26 A '''separate namespace''' is used for display cues (e.g. http://www.clarin.eu/cmdi/ style/1.0). In this namespace attributes are defined (in an independent XSD) for all kinds of display and interaction cues.26 A '''separate namespace''' is used for display cues (e.g. http://www.clarin.eu/cmdi/cues/display/1.0). In this namespace attributes are defined (in an independent XSD) for all kinds of display and interaction cues. 27 27 28 28 The general component specification allows any attributes from this namespace on all components, elements and attributes. To define a 'style' for a given component or profile, an '''XSLT''' stylesheet has to be created that '''augments''' the component specification with these cue attributes with the desired values (for an example, see below). … … 73 73 can be transformed to 74 74 {{{ 75 <CMD_Element name="Title" cues:backgroundcolor="#"/> 75 <CMD_Element name="Title" display:backgroundcolor="#"/> 76 }}} 77 78 Visual merging of (linked) child components (only effective if child component does not have repeating children): 79 80 {{{ 81 <CMD_Component name="ActorLanguage"> 82 <!-- link to ISO-639-3 component --> 83 <CMD_Component ComponentId="clarin.eu:cr1:c_1271859438110" CardinalityMin="1" CardinalityMax="1" display:mergewithparent="true" /> 84 <CMD_Element name="PrimaryLanguage" /> 85 </CMD_Component> 86 }}} 87 88 An alternative to the display priority attribute of CMDI 1.1: 89 90 {{{ 91 <CMD_Component name="Actor" display:salientelements="Name,Role"> 92 <CMD_Element name="Name" /> 93 <CMD_Element name="Role" /> 94 <CMD_Element name="Age" /> 95 </CMD_Component> 76 96 }}} 77 97