Changes between Version 20 and Version 21 of CMDI 1.2/Cues/Display information


Ignore:
Timestamp:
02/17/14 10:32:46 (10 years ago)
Author:
twagoo
Comment:

added example for profile XSD

Legend:

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

    v20 v21  
    6868xs:anyAttribute can be used to allow display cues on component, element and attribute specifications:
    6969
    70 {{{
     70{{{#!xml
    7171   <!-- list of all attributes that can be bound to a cl_el -->
    7272    <xs:attributeGroup name="clarin_element_attributes">
     
    9595A simple case:
    9696
    97 {{{
     97{{{#!xml
    9898    <CMD_Element name="Title" />
    9999}}}
    100100can be transformed to
    101 {{{
     101{{{#!xml
    102102    <CMD_Element name="Title" display:backgroundcolor="#"/>
    103103}}}
     
    105105Visual merging of (linked) child components (only effective if child component does not have repeating children):
    106106
    107 {{{
     107{{{#!xml
    108108    <CMD_Component name="ActorLanguage">
    109109       <!-- link to ISO-639-3 component -->
     
    115115An alternative to the display priority attribute of CMDI 1.1:
    116116
    117 {{{
     117{{{#!xml
    118118    <CMD_Component name="Actor" display:displayvaluefield="Name,Role">
    119119       <CMD_Element name="Name" />
     
    124124
    125125the attributes can be inherited in the derived (via comp2schema) XSD, like the datcat attributes are, in the same display cues namespace.
     126
     127==== Implementation on profile schema level ====
     128
     129The display cue attributes can be inherited on the element and attributes definitions in the schema file, in the same as 'datcat' attributes. For example (based on the last component specification example above):
     130
     131{{{#!xml
     132<xs:element name="Actor" minOccurs="1" maxOccurs="1" display:displayvaluefield="Name,Role">
     133    <xs:complexType>
     134        <xs:sequence>
     135            <xs:element name="Name"
     136                display:backgroundcolor="#f00"
     137                minOccurs="1" maxOccurs="1">
     138                <xs:complexType>
     139                    <xs:simpleContent>
     140                      <xs:extension base="xs:string"/>
     141                    </xs:simpleContent>
     142                </xs:complexType>
     143            </xs:element>
     144}}}
    126145
    127146== Tickets ==