nativemarkup

Purpose

Used to define device specific markup. The content model is xs:any.

If the markup language is not WML, either the expr attribute is required, or the nativemarkup elements must be within the scope of a select element.

If an invalid location is specified in the markup, a warning message is logged and the page will be generated without the data specified for that location.

Note:

Some targetLocation attribute values are WML-specific.

Contained by

Attributes

Attribute Description Type Default Options Use
expr An MCS expression xs:string none    optional 
pane The name of the pane if targetLocation is set to 'pane' xs:string none    optional 
targetLocation Specifies where the markup is to be placed in the page. It can be a literal or a text policy. xs:string none  wml.deck.template, wml.card.timer, wml.card.onevent, wml.card.beforebody, here, pane, html.head  required 

Example

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="nativemarkup">
  <nativemarkup targetLocation="pane" pane="congratulations">
    <wml>
      <card id="card1" title="WML only">
        <p>Hello World!</p>
      </card>
    </wml>
  </nativemarkup>
  <pane name="background">
    <h3>Welcome</h3>
  </pane>
</canvas>

Related topics