Changes between Version 12 and Version 13 of CMDI 1.2/Cues/Display information


Ignore:
Timestamp:
02/11/14 12:47:49 (10 years ago)
Author:
twagoo
Comment:

examples

Legend:

Unmodified
Added
Removed
Modified
  • CMDI 1.2/Cues/Display information

    v12 v13  
    2424== Proposed solution ==
    2525
    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.
     26A '''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.
    2727
    2828The 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).
     
    7373can be transformed to
    7474{{{
    75     <CMD_Element name="Title" cues:backgroundcolor="#"/>
     75    <CMD_Element name="Title" display:backgroundcolor="#"/>
     76}}}
     77
     78Visual 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
     88An 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>
    7696}}}
    7797