Description
An AmlPage is a display page on the mobile device. An AmlPage is added to the AmlDocument. AmlPage is the primary container element.
Element Body
(( ( AmlContainer | AmlChoice | AmlGroup | AmlForm | AmlLink | AmlTable | AmlControlMenu | AmlText | AmlBr | AmlImage | AmlList | AmlSelectList | AmlOrderedList | AmlPCData | AmlSpace )*, AmlStyle? )
Parent
AmlDocument
Restrictions
None
AML Attributes
| 
 Attribute  | 
 Description  | 
 Possible values  | 
 Default  | 
 Req’d?  | 
|---|---|---|---|---|
| 
 id  | 
 Id for page  | 
 CDATA  | 
 No Default  | 
 No  | 
| 
 title  | 
 Title for Page  | 
 CDATA  | 
 No Default  | 
 No  | 
| 
 titlecolor  | 
 Color of title on page. Color name or number  | 
 Color name or number  | 
 No Default  | 
 No  | 
| 
 textsize  | 
 Size of text on page  | 
 (big|normal|small)  | 
 normal  | 
 No  | 
| 
 italics  | 
 Set title to italic  | 
 (true|false)  | 
 false  | 
 No  | 
| 
 bold  | 
 Set title to bold  | 
 (true|false)  | 
 false  | 
 No  | 
| 
 underline  | 
 Set title to underlined  | 
 (true|false)  | 
 false  | 
 No  | 
| 
 halign  | 
 Halign title on page.  | 
 (left|right|center)  | 
 center  | 
 No  | 
| 
 font  | 
 Font of the title  | 
 CDATA  | 
 No Default  | 
 No  | 
| 
 blink  | 
 Set title to blink  | 
 (true|false)  | 
 false  | 
 No  | 
| 
 marquee  | 
 Set title to marquee  | 
 (true|false)  | 
 false  | 
 No  | 
| 
 cache  | 
 Set caching for page  | 
 (true|false)  | 
 true  | 
 No  | 
| 
 summary  | 
 Set summary text for the page  | 
 CDATA  | 
 No Default  | 
 No  | 
| 
 prev_label  | 
 Set previous label for page  | 
 CDATA  | 
 No Default  | 
 No  | 
| 
 next_label  | 
 Set next label for page  | 
 CDATA  | 
 No Default  | 
 No  | 
| 
 menu_pos  | 
 Set position for control menus on page  | 
 (top|bottom|topbottom)  | 
 true  | 
 No  | 
| 
 cache_view  | 
 Set cache view for cache menus on page  | 
 (menu|link)  | 
 menu  | 
 No  | 
| 
 refresh  | 
 Set refresh URL for the page  | 
 CDATA  | 
 No Default  | 
 No  | 
| 
 refresh_timeout  | 
 Set refresh timeout for document  | 
 number of seconds  | 
 No Default  | 
 No  | 
Markup Language Examples
Sample AML Input:
<AmlDocument> <AmlPage title="Hello World Page"> <AmlText text="Hello World!"/> </AmlPage> </AmlDocument>
Sample WML Output:
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <head> <meta http-equiv="Cache-Control" content="max-age=0"/> </head> <card id="agp0"> <p align="center">Hello World Page</p> <p>Hello World!</p> </card> </wml>
Sample cHTML Output:
<html> <head> <title></title> <meta name="PalmComputingPlatform" content="true"></meta> <meta http-equiv="Pragma" content="no-cache"></meta> <meta http-equiv="Cache-Control" content="no-cache"></meta> </head> <body> <div align="center"> <a name="agp0"> Hello World Page </a> </div> Hello World! </body> </html>