Changes between Version 17 and Version 18 of CMDI 1.2/Cues/Display information


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

general component schema implementation example

Legend:

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

    v17 v18  
    6565Cues will be represented on the model level only (component specification -> XSD), not on the instance level
    6666
     67==== Implementation in general component schema ====
     68xs:anyAttribute can be used to allow display cues on component, element and attribute specifications:
     69
     70{{{
     71   <!-- list of all attributes that can be bound to a cl_el -->
     72    <xs:attributeGroup name="clarin_element_attributes">
     73        <xs:attribute name="name" type="xs:Name" use="required">
     74            <xs:annotation>
     75                <xs:documentation>The name of the element.</xs:documentation>
     76            </xs:annotation>
     77        </xs:attribute>
     78        ...
     79        <xs:anyAttribute namespace="http://www.clarin.eu/cmdi/cues/display/1.0" processContents="strict"/>
     80    </xs:attributeGroup>
     81
     82    <!-- list of all attributes that can be bound to a cl_comp -->
     83    <xs:attributeGroup name="clarin_component_attributes">
     84        <xs:attribute name="name" type="xs:Name"/>
     85         ...
     86        <xs:anyAttribute namespace="http://www.clarin.eu/cmdi/cues/display/1.0" processContents="strict"/>
     87    </xs:attributeGroup>
     88}}}
     89and similar for Attribute specifications
     90
    6791==== Implementation on component model level ====
    6892
     
    99123}}}
    100124
     125the attributes can be inherited in the derived (via comp2schema) XSD, like the datcat attributes are, in the same display cues namespace.
    101126
    102127== Tickets ==