<define> (Template Tag)


Description


This tag defines a component. A content is included as the XML-based sub-tree inside this tag.

The <define> tag defines a component – a content is included as the XML-based sub-tree inside this tag.


Example


 <?xml version="1.0" encoding="utf-8"?>

 <assembly id="nxm.tests.basic.pl">

. . .

 <components>

   <define id="company_header">

     <content>

. . .

     </content>

   </define>

 </components>

. . .

 </assembly>


The example definition of a component with a unique company_header name (in the scope of the library).


Attributes



Attribute

Description

id

There must be a unique ID within the entire <assembly> branch.

Example:

<define id=”company_header”>

. . . (body of definition)

</define>



Child elements permitted


<content>



Child element

Description

content

The <content> element is the body of a definition. The <content> element can include any elements described in the <content> tag.

The <content> tag defines a content of the <define> tag. This tag is the body of a definition.



Parent elements permitted


<components>