HP-UX CMGR A.02.01 Administrator's and Developer's Guide
25
2.3.8 The repeat Element
The repeat element lets you replace multi-valued variables. When replacing variables, cmgr
duplicates the contents of the repeat element once per variable value. If the repeat element
contains multiple multi-valued variables, and the variables do not have an equal number of values,
cmgr returns an error value of 1.
For example, using variables x=color, y=”'1', '2', '3'”, and z=”'red',
'yellow','green'”, the following program:
<repeat vary="y, z">
The $x $y is $z.
</repeat>
would generate the following output:
The color 1 is red
The color 2 is yellow
The color 3 is green
NOTE: The repeat element has no child element.
The repeat element can have the following attributes:
Attribute Description
if
Optional. Common attribute.
if_op
Optional. Common attribute.
vary
Required. Comma separated list of variable names to vary.
2.3.9 The success Element
The success element is used to encapsulate element success messages that can be displayed when
the processing of the parent element returns without an error.
NOTE: The success element has no child element and no attributes.
2.3.10 The template_version Element
The template_version is used to encapsulate template version text. It is supported only as a child
of the head element.
NOTE: The template_version element has no child element and no attributes.
2.3.11 The xi:include Element
The xi:include element is used to include another XML document in the current document.
NOTE: The xi:include element has no child element.