HP-UX CMGR A.02.00 Administrator's and Developer's Guide

3 Building a Template
You can use the CMGR templates with the cmgr command to coordinate the
configuration of subsystems and services. A CMGR template is an XML document
used to describe a set of configuration actions to perform for the add, delete, replace,
list, and help operations of the cmgr command. The CMGR template syntax is enforced
via the Document Type Definition (DTD) schema file. In addition to XML elements
and attributes, a CMGR template can contain variables that are dynamically evaluated
by the cmgr command during processing. While processing the template, the cmgr
command logically replaces the occurrences of variables with the user provided (or
default) values.
The cmgr command provides handler routines for each element type defined in this
section. The cmgr command can support additional element types if you provide new
handler routines.
The cmgr command processes the elements in the order that they appear in the
document. The child elements are processed before the parent elements.
The section describes the following:
Structure Elements ( Section 3.1)
Configuration Elements ( Section 3.2)
Processing Elements ( Section 3.3)
Common Attributes ( Section 3.4)
Example: Building a Template (Section 3.5)
3.1 Structure Elements
The CMGR template structure elements are grouping elements. They define the structure
of your template and include the following elements: template, head, prologue,
and body.
This section describes each structure elements and lists their possible child elements:
template ( Section 3.1.1)
head ( Section 3.1.2)
prologue ( Section 3.1.3)
body ( Section 3.1.4)
3.1 Structure Elements 15