<!ATTLIST INCLUDE applicationId NMTOKEN #IMPLIED xmlFile CDATA #REQUIRED version CDATA #IMPLIED load ( true | false) "false"> |
Attribute | Mand. | Description | Default |
applicationId | no | Id. of the application used for loading resources | |
xmlFile | yes | Relative path of the sub-model. | |
version | no | Version of the included model. | |
load | no | Indicates if loading of the include is done on parsing or when needed. | false |
<!ELEMENT INCLUDE (INFO)*> |
Element | Mand. | Mult. | Description |
INFO | yes | no | List of objects declared as imported from the included sub-model. These objects are referenced by their id and have a type: class, action simple, compound action or tab action). An error occurs when loading the included model, if an object with the specified id is not found or if the found object has not the right type. To allow their use in toolbars and menus without loading the included model, these external objects may have a name, an alias, a group and a prefix. |
<PROJECT id="compta"> ... <INCLUDE xmlFile="leon/contrib/compta/info/admin.xml" applicationId="admin"> <INFO id="user"> <NAME value="User"/> <GROUP value="Admin"/> </INFO> <INFO id="result"/> <INFO id="balance" type='ACTION'> <NAME value='Account'/> <GROUP value='Admin'/> <PREFIX value='result'/> </INFO> </INCLUDE> ... </PROJECT> Note : The sub-project "admin" can do the reverse include of the "compta" project. |