Changes between Version 8 and Version 9 of CMDI 1.2/Cues/Display information


Ignore:
Timestamp:
02/11/14 11:02:56 (10 years ago)
Author:
twagoo
Comment:

copied some content from e-mail discussions (work in progress)

Legend:

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

    v8 v9  
    2424== Proposed solution ==
    2525
    26 Description
     26* A separate namespace for application cues, e.g. http://www.clarin.eu/cmdi/cues/1.0
     27* In this namespace attributes are defined (in a separate XSD) for all kinds of display cues etc, e.g. background colours or instructions to merge all subcomponents
     28* The general component specification allows any attributes from this namespace on all components, elements and attributes
     29* 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)
     30* The component-to-schema XSLT picks up all cues and wraps them in app info blocks in the profile XSD
     31* When requesting a profile from the Component Registry, it can be instructed to apply a style (or maybe multiple), e.g. by getting http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1361876010587/xsd?style=my_style where my_style is an identifier that gets the style from some style registry
     32
     33Some meta-notes:
     34- The style should probably inject the namespace definition and schema location into the component spec so that we can have independent versioning of styles
     35- Applications can choose which cues to support and which not, and will also likely support a specific version of the style 'language'
     36- Maybe we want to have several 'sub-namespaces' for different kinds of cues (e.g. editor cues, viewer cues, ...)
     37- We need a set of example cues to illustrate this
     38- If we would do it like this, there will be a demand for a style editor because modellers are not going to want to write XSLT's (and we probably don't want them to)
     39- Another registry... will this go down well? :) It could be integrated with the Component Registry though.
    2740
    2841=== Pros ===
     
    3750
    3851* Affected tools
     52 * Infrastructure
     53  * Component Registry
     54 * Editors
     55  * Arbil
     56  * ProForma
     57 * Viewers
     58  * VLO
     59  * ...
    3960* Impact on instances
    4061
    4162=== Implementation examples ===
    4263
    43 * Implementation on model level
    44 * Implementation on instance level
     64Cues will be represented on the model level only (component specification -> XSD), not on the instance level
    4565
    46 (Include this section if there are multiple proposals)
    47 === Discussion ===
     66==== Implementation on model level ====
    4867
    49 Discuss this solution proposal in this section
     68Allowing any attribute in the cues namespace on components, elements and attributes (or maybe different namespaces).
    5069
     70A simple case:
     71
     72{{{
     73    <CMD_Element name="Title" />
    5174}}}
     75can be transformed to
     76{{{
     77    <CMD_Element name="Title" cues:backgroundcolor="#"/>
     78}}}
     79
    5280
    5381== Tickets ==