Element <templates>¶
Purpose: Container for reusable AMA template definitions.
Why: Use it to group reusable AMA template declarations.
Example¶
1 | |
Decision guide¶
Business value: Makes the output-to-template mapping explicit and reviewable.
-
Use when
- Several outputs select templates declared in the same AMA block.
-
Choose another approach when
- A legacy descriptor intentionally declares its sole template directly.
-
Prerequisites
- Give every template a unique id.
Complete examples¶
Render profiled EDIFACT output and package its artifacts
Use the AMA family when partner-specific EDIFACT separators, templates, output names, side artifacts, and archive packaging must be modeled together.
| ama-edifact-package/templates/order.template.edi | |
|---|---|
1 | |
| ama-edifact-package/datamimic.xml | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
Rules and invalid combinations¶
No additional element-specific rules. Required attributes, types, and supported values are shown below.
Allowed parents / Allowed children¶
Allowed parents: ama-generate, else, else-if, if, while
Allowed children:
template
Attributes¶
Show all 0 attributes
None