Changes between Version 16 and Version 17 of CMDI 1.2/Vocabularies


Ignore:
Timestamp:
02/21/14 07:36:18 (10 years ago)
Author:
twagoo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CMDI 1.2/Vocabularies

    v16 v17  
    175175No different from closed vocabularies in CMDI 1.1. The item URI is specified in the component spec/schema.
    176176
     177==== General component schema ====
     178A modification of ''ValueScheme_type'' as it exists in CMDI 1.1:
     179{{{#!xml
     180...
     181    <xs:complexType name="ValueScheme_type">
     182        <xs:choice>
     183            <xs:element name="pattern" type="xs:string" maxOccurs="1">
     184                <xs:annotation>
     185                    <xs:documentation>Specification of a regular expression the element should
     186                        comply with.</xs:documentation>
     187                </xs:annotation>
     188            </xs:element>
     189            <xs:element name="Vocabulary" type="Vocabulary_type">
     190                <xs:annotation>
     191                    <xs:documentation>Specification of an open or closed vocabulary</xs:documentation>
     192                </xs:annotation>
     193            </xs:element>
     194        </xs:choice>
     195    </xs:complexType>
     196
     197    <xs:complexType name="Vocabulary_type">
     198         <xs:sequence>
     199            <xs:element name="enumeration" type="enumeration_type" minOccurs="0" maxOccurs="1">
     200                <xs:annotation>
     201                    <xs:documentation>A list of the allowed values of a controlled
     202                        vocabulary.</xs:documentation>
     203                </xs:annotation>
     204            </xs:element>
     205        </xs:sequence>
     206        <xs:attribute name="URI" type="xs:anyURI" use="required"/>
     207        <xs:attribute name="ValueProperty" type="xs:string"/> <!-- optionally selects a label -->
     208        <xs:attribute name="ValueLanguage" type="xs:string"/> <!-- optionally selects a language -->
     209    </xs:complexType>
     210...
     211}}}
     212
    177213== Tickets ==
    178214{{{#!comment