Description
The AmlDocument is the root level element. An AmlDocument must contain one or more AmlPage elements.This element normally has only a title attribute.
Element Body
(AmlContainer*, AmlPage+, AmlStyle?)
Parent
None
Restrictions
None
AML Attributes
Attribute |
Description |
Possible values |
Default |
Req’d? |
---|---|---|---|---|
encoding |
Set encoding on document |
CDATA |
No Default |
Yes |
title |
Set title displayed on device |
CDATA |
No Default |
No |
titlecolor |
Set the titlecolor |
Color name or numeric value |
No Default |
No |
textsize |
Set textsize on document |
(big|normal|small) |
normal |
No |
italics |
Set title to italics |
(true|false) |
false |
No |
bold |
Set title to bold |
(true|false) |
false |
No |
underline |
Set title to underlined |
(true|false) |
false |
No |
halign |
Set halign for title |
(left|right|center) |
center |
No |
font |
Font to be used |
CDATA |
No Default |
No |
blink |
Set title to blink |
(true|false) |
false |
No |
marquee |
Set title to marquee |
(true|false) |
false |
No |
bgcolor |
Set background color of document |
Color name or numeric value |
No Default |
No |
textcolor |
Set textcolor for document |
Color name or numeric value |
No Default |
No |
linkcolor |
Set linkcolor of document |
Color name or numeric value |
No Default |
No |
prev_label |
Set previous label for document |
CDATA |
No Default |
No |
next_label |
Set next label for document |
CDATA |
No Default |
No |
refresh |
Set refresh url for document |
CDATA |
No Default |
No |
refresh_timeout |
Set refresh timeout for document |
CDATA |
No Default |
No |
markup_headers |
Set markup headers for particular browser |
CDATA |
No Default |
No |
Markup Language Examples
Sample AML Input:
<AmlDocument title="Welcome"> <AmlPage title="Login"> <AmlForm url="Validate"> <AmlText text="User Name"/> <AmlInput name="user"/> <AmlBr/> <AmlText text="Password"/> <AmlInput name="pin"/> </AmlForm> </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">Login</p> <p> User Name <input emptyok="true" name="user"/><br/> Password <input emptyok="true" name="pin"/> </p> <do label="submit" type="accept"> <go href="Validate?user=$(user)&pin=$(pin)" sendreferer="true" method="get"/> </do> </card> </wml>
Sample cHTML Output:
<html> <head> <title>Welcome</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">Login</a> </div> <form enctype="application/x-www-form-urlencoded" action="Validate" method="get"> User Name <input name="user"></input><br>Password<input name="pin"></input><br> <input name="request" type="submit" value="Submit"></input> </form> </body> </html>