Changes between Version 20 and Version 21 of CMDI 1.2/Cues/Display information
- Timestamp:
- 02/17/14 10:32:46 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CMDI 1.2/Cues/Display information
v20 v21 68 68 xs:anyAttribute can be used to allow display cues on component, element and attribute specifications: 69 69 70 {{{ 70 {{{#!xml 71 71 <!-- list of all attributes that can be bound to a cl_el --> 72 72 <xs:attributeGroup name="clarin_element_attributes"> … … 95 95 A simple case: 96 96 97 {{{ 97 {{{#!xml 98 98 <CMD_Element name="Title" /> 99 99 }}} 100 100 can be transformed to 101 {{{ 101 {{{#!xml 102 102 <CMD_Element name="Title" display:backgroundcolor="#"/> 103 103 }}} … … 105 105 Visual merging of (linked) child components (only effective if child component does not have repeating children): 106 106 107 {{{ 107 {{{#!xml 108 108 <CMD_Component name="ActorLanguage"> 109 109 <!-- link to ISO-639-3 component --> … … 115 115 An alternative to the display priority attribute of CMDI 1.1: 116 116 117 {{{ 117 {{{#!xml 118 118 <CMD_Component name="Actor" display:displayvaluefield="Name,Role"> 119 119 <CMD_Element name="Name" /> … … 124 124 125 125 the 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 129 The 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 }}} 126 145 127 146 == Tickets ==