unit

Purpose

Container for any XDIME element. You can use the unit element as a wrapper for external files to included into the main body without the need for canvas or montage elements to provide a root elements in the fragments.

Note:

The montage element is not supported by Mobile Portal Accelerator.

Contains

Examples

The welcome.mlyt layout can be found in the MCS/repository/xml-repository directory.

<?xml version="1.0" encoding="UTF-8"?>
<canvas layoutName="/welcome.mlyt" pageTitle="include">
  <pane name="background">
    <h3>Hello World!!!</h3>
    <include href="test.xdinc" parse="xml"/>
  </pane>
</canvas>

Where, test.xdinc contains the following code:

<unit>
  <p>Copyright 2009 All rights reserved.</p>
</unit>

Related topics