<assembly> (Template Tag)


Description


This is the main tag of the document. The <assembly> tag defines unit of compilation (DLL library) and logical set of components defined in this assembly.

The tag may contain components, either stand-alone documents or documents’ fragments to be “injected” into other components.


Example


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

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

   <components>

     <define id="text_and_para">

       <content>

         <document>

           <section width="10.0" height="15.0" style="default">

             <text>First text</text>

           </section>

         </document>

       </content>

     </define>

   </components>

 </assembly>


The above example shows the production of a PDF document on a sheet of paper of the size 10.0 cm by 15.0 cm. The example displays the text: First text


Visual output


UpuTagAssemblyVisOutput1EnV1


Attributes



Attribute

Description

id

Unique ID of namespace defined by this assembly. 

Namespace can be used to qualify (and access) components defined in this assembly,
i.e. for ID="nxm.tests.basic.pl" and component “main” system generates method with fully qualified name nxm.tests.basic.pl.main



Child elements permitted



Child element

Description

reference

As child element it enumerates referenced assemblies (DLL) e.g. for SSL, digital signature, etc.

components

As child element it enumerates components defined in the assembly.



Parent elements permitted


This is top element - no parent elements are permitted.


Child elements prohibited


No child elements are prohibited.


Parent elements prohibited


This is top element - all parent elements are prohibited.