-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-component-actor.xml
More file actions
executable file
·57 lines (47 loc) · 2.67 KB
/
example-component-actor.xml
File metadata and controls
executable file
·57 lines (47 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<CMD_ComponentSpec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../general-component-schema.xsd" isProfile="false">
<Header/>
<CMD_Component name="Actor" CardinalityMin="0" CardinalityMax="unbounded" ComponentId="ex_compid_actor">
<CMD_Element name="title" ValueScheme="string" Multilingual="true" CardinalityMax="1" />
<CMD_Element name="firstName" ValueScheme="string" Documentation="This is the firstname of a person" DisplayPriority="0" CardinalityMax="1">
<!-- provide a nickname attribute for the firstName element -->
<AttributeList>
<!-- example of an attribute using a simple type -->
<Attribute>
<Name>nickname</Name>
<Type>string</Type>
</Attribute>
<!-- example of an attribute using an enumeration (could also be a pattern) -->
<Attribute >
<Name>suffix</Name>
<ValueScheme>
<enumeration>
<item ConceptLink="http://www.isocat.org/datcat/CMD-001" AppInfo="the older">senior</item>
<item ConceptLink="http://www.isocat.org/datcat/CMD-002" AppInfo="the younger">junior</item>
</enumeration>
</ValueScheme>
</Attribute>
</AttributeList>
</CMD_Element>
<CMD_Element name="lastName" ValueScheme="string" DisplayPriority="1"/>
<CMD_Element name="sex" ConceptLink="http://www.isocat.org/datcat/CMD-000" ValueScheme="anyURI">
<ValueScheme>
<enumeration>
<item ConceptLink="http://www.isocat.org/datcat/CMD-0010" AppInfo="a male person">male</item>
<item ConceptLink="http://www.isocat.org/datcat/CMD-001" AppInfo="a female person">female</item>
</enumeration>
</ValueScheme>
</CMD_Element>
<CMD_Element name="age" ConceptLink="http://www.isocat.org/datcat/CMD-000">
<ValueScheme>
<pattern>([0-9]+)*(;[0-9]+)*(.[0-9]+)</pattern>
</ValueScheme>
</CMD_Element>
<CMD_Component ConceptLink="http://www.isocat.org/datcat/CMD-000" name="ActorLanguage" CardinalityMin="0" CardinalityMax="unbounded">
<!-- inline element definitions -->
<CMD_Element name="ActorLanguageName" ValueScheme="string"
ConceptLink="http://www.isocat.org/datcat/DC-1766"/>
</CMD_Component>
</CMD_Component>
</CMD_ComponentSpec>