Element <list>¶
Purpose: Generate a list value from one or more declared item shapes.
Why: Use it when one output field combines item entries with different shapes or conditions.
Example¶
1 | |
Decision guide¶
Business value: Represents a collection whose entries may have different shapes or business conditions.
-
Use when
- A field combines alternative item forms or conditionally included entries.
-
Choose another approach when
- All values are homogeneous scalars or all records share one structure.
-
Prerequisites
- Declare item children and their selection conditions for each entry shape; omit them only when an empty collection is intentional.
-
Alternatives
- Use array for homogeneous scalar values. (See:
<array>) - Use nestedKey for repeated records of one shape. (See:
<nestedKey>)
- Use array for homogeneous scalar values. (See:
Complete examples¶
Assemble nested objects, conditional lists, arrays, and branches
Use this shape when one deterministic product combines nested records, heterogeneous list entries, literal arrays, and mutually exclusive fields.
| structured-profile/datamimic.xml | |
|---|---|
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 | |
Rules and invalid combinations¶
No additional element-specific rules. Required attributes, types, and supported values are shown below.
Allowed parents / Allowed children¶
Allowed parents: else, else-if, generate, if, item, iterate, nestedKey, while
Allowed children:
item
Related concepts and use cases¶
- Structured Data and Rule Pipelines — Shows how composite output shapes and the ordered source-filter, mapping, and target-filter pipeline work together without hiding phase boundaries.
Attributes¶
Show all 2 attributes
converter
Converter for element data transformation.
optional; string; Default: null.
name
Name of the list.
required; string.