<define id="a unique define id within the namespace">
...child instructions...
</define>
Description
Defines a block that can be reused. The define block contains a set of instructions that can be reused. The instruction useref Element references a define block.
Attributes
Name
Use
Annotation
id
required
The id of the define block to use to reference the block.
Allowed character set: [p{Alnum}\_\-] = [a-z A-Z 0-9 _ -]
Examples
<pemapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="mapping-schema.xsd "
version="1.0">
<import name="import1" path="import1.xml" />
<namespace> <!-- define block can be referenced within its namespace -->
<define id="internal_define_block">
...child instructions...
</define>
<!-- references a define block within this mapping -->
<useref refid="internal_define_block" />
<!-- references a define block from an external mapping which is imported in the
current mapping(import1.xml) -->
<useref refid="import1::external_define_block" />
</namespace>
</pemapping>