122 | | XML example: |
| 122 | For XML examples, see Elements and Components. |
| 123 | |
| 124 | === Elements === |
| 125 | |
| 126 | Components can have any number of child elements defined |
| 127 | |
| 128 | Elements have the following properties: |
| 129 | * Name (mandatory; must be a valid XML attribute name) |
| 130 | * Type (mandatory; see below for details on selection) |
| 131 | * !DisplayPriority (mandatory - each component must have at least one child element with a value > 0) |
| 132 | * !MinOccurrences (mandatory, should be an integer >= 0) |
| 133 | * !MaxOccurrences (mandatory, should be an integer >= !MinOccurrences or 'unbounded') |
| 134 | * Concept link (optional; see below for details on search) |
| 135 | * Documentation (optional) |
| 136 | * Multilingual (optional boolean) |
| 137 | |
| 138 | Elements can have any number of attributes as children |
| 139 | |
| 140 | XML example of an optional (0:1) 'string' type element with one attribute |
124 | | <AttributeList> |
| 142 | <CMD_Element name="myElement" ValueScheme="string" CardinalityMin="0" CardinalityMax="1" DisplayPriority="1" Multilingual="false"> |
| 143 | <AttributeList> |
| 144 | <Attribute> |
| 145 | <Name>elementAttribute</Name> |
| 146 | <Type>string</Type> |
| 147 | </Attribute> |
| 148 | </AttributeList> |
| 149 | </CMD_Element> |
| 150 | }}} |
| 151 | |
| 152 | === Components === |
| 153 | |
| 154 | Components can have any number of child components defined. These can either be references to other components with an ID of their own, or inline components that constitute a level of hierarchy but cannot be reused outside the context in which they are defined. |
| 155 | |
| 156 | ==== Linking in existing components ==== |
| 157 | Existing components from the public, private or group spaces can be chosen for inclusion as a reference. |
| 158 | |
| 159 | TODO: XML example |
| 160 | |
| 161 | ==== Inline components ==== |
| 162 | |
| 163 | Inline components have the following properties: |
| 164 | |
| 165 | |
| 166 | Inline components can have any number of attributes and elements as children |
| 167 | |
| 168 | XML example of a 1:N component with an element and an attribute as children |
| 169 | {{{#!xml |
| 170 | <CMD_Component name="DiscAn_TextCorpus" CardinalityMin="1" CardinalityMax="unbounded"> |
| 171 | <AttributeList> |
138 | | === Elements === |
139 | | |
140 | | Components can have any number of child elements defined |
141 | | |
142 | | Elements have the following properties: |
143 | | |
144 | | TODO: XML example |
145 | | |
146 | | === Components === |
147 | | |
148 | | Components can have any number of child components defined. These can either be references to other components with an ID of their own, or inline components that constitute a level of hierarchy but cannot be reused outside the context in which they are defined. |
149 | | |
150 | | ==== Linking in existing components ==== |
151 | | Existing components from the public, private or group spaces can be chosen for inclusion as a reference. |
152 | | |
153 | | TODO: XML example |
154 | | |
155 | | ==== Inline components ==== |
156 | | |
157 | | Inline components have the following properties: |
158 | | * |
159 | | |
160 | | TODO: XML example |