source: metadata/trunk/toolkit/example/example-component-actor.xml @ 47

Last change on this file since 47 was 47, checked in by dietuyt, 15 years ago

Addition of auto revision and date header, added test ComponentId? to
actor component

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<CMD_ComponentSpec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4    xsi:noNamespaceSchemaLocation="../general-component-schema.xsd">
5   
6    <Header/>
7   
8    <CMD_Component name="Actor" CardinalityMin="0" CardinalityMax="unbounded" ComponentId="eu.clarin.mdcomponent.actor">
9       
10        <CMD_Element name="firstName" ValueScheme="string">
11            <!-- provide a nickname attribute for the firstName element -->
12            <AttributeList>
13                <!-- example of an attribute using a simple type -->
14                <Attribute>
15                    <Name>nickname</Name>
16                    <Type>string</Type>
17                </Attribute>
18                <!-- example of an attribute using an enumeration  (could also be a pattern) -->
19                <Attribute >
20                    <Name>suffix</Name>
21                    <ValueScheme>
22                        <enumeration>
23                            <item ConceptLink="http://www.isocat.org/datcat/CMD-001">senior</item>
24                            <item ConceptLink="http://www.isocat.org/datcat/CMD-002">junior</item>
25                        </enumeration>
26                    </ValueScheme>
27                </Attribute>
28            </AttributeList>
29        </CMD_Element>
30       
31        <CMD_Element name="lastName" ValueScheme="string"/>
32       
33        <CMD_Element name="sex" ConceptLink="http://www.isocat.org/datcat/CMD-000" ValueScheme="anyURI">
34            <ValueScheme>
35                <enumeration>
36                    <item ConceptLink="http://www.isocat.org/datcat/CMD-0010">male</item>
37                    <item ConceptLink="http://www.isocat.org/datcat/CMD-001">female</item>
38                </enumeration>
39            </ValueScheme>
40        </CMD_Element>
41        <CMD_Element name="age" ConceptLink="http://www.isocat.org/datcat/CMD-000">
42            <ValueScheme>
43                <pattern>([0-9]+)*(;[0-9]+)*(.[0-9]+)</pattern>
44            </ValueScheme>
45        </CMD_Element>
46
47        <CMD_Component ConceptLink="http://www.isocat.org/datcat/CMD-000" name="ActorLanguage" CardinalityMin="0" CardinalityMax="unbounded">
48            <!-- inline element definitions -->
49            <CMD_Element name="ActorLanguageName" ValueScheme="string"
50                ConceptLink="http://www.isocat.org/datcat/DC-1766"/>
51        </CMD_Component>
52
53    </CMD_Component>
54
55</CMD_ComponentSpec>
Note: See TracBrowser for help on using the repository browser.