Sun Java System Portal Server Mobile Access 7.1 Developer's Reference

AmlPCData

Description

This element has been deprecated. The AmlText element has replaced the AmlPCData element. The AmlPage element is used to place text on a display. The text exhibited is the value of the text attribute. The text can be adjusted as to horizontal alignment (align attribute). The text can be made italic, bold, or underlined.

Element Body

Empty

Parent

AmlPage, AmlForm

Restrictions

None

AML Attributes

Attribute  

Description  

Possible values  

Default  

Req’d?  

text 

Set text displayed 

CDATA 

No Default 

No 

textsize 

Set size of text 

(big|normal|small) 

normal 

No 

align 

Set horizontal alignment 

(left|right|center) 

center 

No 

italics 

Set italics emphasis 

(true|false) 

false 

No 

bold 

Set bold emphasis 

(true|false) 

false 

No 

underline 

Set underline emphasis 

(true|false) 

false 

No 

Markup Language Examples

Sample AML Input:

<AmlDocument>
	<AmlPage title="Hello World Page">
		<AmlPCData 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><br/>Hello World!</p> <p><br/></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>
		<br>Hello World!<br>
	</body>
</html>