Oracle9i Application Server Wireless Edition Developer's Guide Release 1.1 Part Number A86700-01 |
|
The Simple Result DTD is the Wireless Edition internal representation of the result returned by an adapter. If an adapter does not return the result in this format, the master service must use the result transformer to convert the result into the Simple Result format. The following describes the content of the DTD including the elements, the usage, the attributes, the children, and the DTD declarations.
You can access the complete Simple Result DTD file, simpleresult.dtd, in the Oracle_Home/panama/dtd directory.
Each section of this document presents a different topic. These sections include:
This document uses the following symbols to indicate the usage of subelements.
Table A-1 DTD Symbols
SimpleResult is the result element of a Wireless Edition service request.
This element contains the actual content delivered to the end user.
<!ELEMENT SimpleResult (SimpleContainer+)>
<!ATTLIST SimpleResult
title CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleText> <SimpleTextItem>Hello World</SimpleTextItem> </SimpleText> </SimpleContainer> </SimpleResult
SimpleContainer is a compound UI consisting of several simple UI elements.
Used as a logical container for one or more simple elements. This is the highest level tag.
<!ELEMENT SimpleContainer (SimpleHelp?, SimpleTimer?, (SimpleText |
SimpleMenu| SimpleForm | SimpleTable | SimpleImage | SimpleBreak
| SimpleHref | SimplePhone | SimpleEmail)+)>
<!ATTLIST SimpleContainer
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleText> <SimpleTextItem>Hello World</SimpleTextItem> </SimpleText> </SimpleContainer> </SimpleResult>
SimpleText is used for displaying one or more blocks of text.
Used for blocks of text which are defined by SimpleTextItem.
<!ELEMENT SimpleText (SimpleHelp?, SimpleTextItem+)>
<!ATTLIST SimpleText
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
SimpleTextItem is a block of text.
Holds one block of text, normally a single paragraph.
#PCDATA (the actual text)
There is no line feed at the end of each SimpleTextItem. See "SimpleBreak".
<!ELEMENT SimpleTextItem (#PCDATA)>
<!ATTLIST SimpleTextItem
name CDATA #IMPLIED
link CDATA #IMPLIED
title CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleText> <SimpleTextItem>Hello World</SimpleTextItem> </SimpleText> </SimpleContainer> </SimpleResult
SimpleMenu displays a simple menu.
A simple menu with selectable menu items.
<!ELEMENT SimpleMenu (SimpleHelp?, SimpleMenuItem+)>
<!ATTLIST SimpleMenu
link CDATA #IMPLIED
title CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
SimpleMenuItem is a single, selectable option in a menu.
The option may be another SimpleMenu element.
<!ELEMENT SimpleMenuItem (SimpleMenu?)>
<!ATTLIST SimpleMenuItem
name CDATA #IMPLIED
link CDATA #IMPLIED
title CDATA #IMPLIED
section CDATA #IMPLIED
separator (before|after|none) "none"
target CDATA #REQUIRED
icon CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleMenu title="CRM Mobile"> <SimpleMenuItem target="<%=baseUrl%>jtfwlgnm.jsp" title="Apps Login"> Apps Login</SimpleMenuItem> <SimpleMenuItem target="<%=baseUrl%>examples.jsp" title="Examples">Examples</SimpleMenuItem> </SimpleMenu> </SimpleContainer> </SimpleResult
SimpleForm displays one or more input fields.
Used as a data-entry form.
<!ELEMENT SimpleForm (SimpleHelp?, (SimpleFormItem |
SimpleFormSelect)+)>
!ATTLIST SimpleForm
name CDATA #IMPLIED
link CDATA #IMPLIED
title CDATA #IMPLIED
section CDATA #IMPLIED
target CDATA #REQUIRED
submit CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
SimpleFormItem is a single input item in a simple form.
Used for user input.
#PCDATA (a default value from the server, it deprecates the default attribute)
<!ELEMENT SimpleFormItem (#PCDATA)>
<!ATTLIST SimpleFormItem
name CDATA #IMPLIED
link CDATA #IMPLIED
title CDATA #IMPLIED
value CDATA #IMPLIED
default CDATA #IMPLIED
mandatory (yes|no) "no"
maxLength CDATA #IMPLIED
size CDATA #IMPLIED
format CDATA #IMPLIED
type (text|password) "text"
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
SimpleFormSelect is a selectable option menu in a simple form.
Presents a selectable number of options to the user. This is a radio box group.
<!ELEMENT SimpleFormSelect (SimpleHelp?, SimpleFormOption+)>
<!ATTLIST SimpleFormSelect
name CDATA #IMPLIED
link CDATA #IMPLIED
title CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleForm target="<%baseUrl%>doCountry.jsp"> <SimpleFormSelect name="country" title="Select a country:"> <SimpleFormOption value="US">United States</SimpleFormOption> <SimpleFormOption value="UK">United Kingdom</SimpleFormOption> <SimpleFormOption value="IT">Italy</SimpleFormOption> </SimpleFormSelect> </SimpleForm> </SimpleContainer> </SimpleResult>
SimpleFormOption is an item in a selectable option menu. The content of this element, which is in parsable character format, specifies the text for the option.
A single option.
#PCDATA (the text of the option)
<!ELEMENT SimpleFormOption (#PCDATA)>
<!ATTLIST SimpleFormOption
name CDATA #IMPLIED
link CDATA #IMPLIED
title CDATA #IMPLIED
value CDATA #REQUIRED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleForm title="Login" target="<%=baseURL%>jtfwvald.jsp" submit="Login"> <SimpleFormItem name="username" title="Username: ">Username: </SimpleFormItem> <SimpleFormItem name="password" type="password" title="Password: ">Password: </SimpleFormItem> </SimpleForm> </SimpleContainer> <?SimpleResult>
SimpleTable represents tabular data.
Used for simple tabular data only.
<!ELEMENT SimpleTable (SimpleTableHeader?, SimpleTableBody)>
<!ATTLIST SimpleTable
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
SimpleTableHeader represents column headings.
Contains table header information, such as column headings.
<!ELEMENT SimpleTableHeader (SimpleCol+)>
<!ATTLIST SimpleTableHeader
title CDATA #IMPLIED
name CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
SimpleTableBody contains the actual tabular data.
Contains table data rows.
<!ELEMENT SimpleTableBody (SimpleRow+)>
<!ATTLIST SimpleTableBody
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
SimpleRow contains a single row of data.
Stores a table row.
<!ELEMENT SimpleRow (SimpleCol+)>
<!ATTLIST SimpleRow
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
SimpleCol represents a single table cell.
Stores a single value for a table cell.
#PCDATA (the column value)
<!ELEMENT SimpleCol (#PCDATA|SimpleImage|SimpleHref|SimplePhone)>
<!ATTLIST SimpleCol
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleTable title="Profitibility"> <SimpleTableHeader> <SimpleCol> <SimpleCol> <SimpleCol>1999</SimpleCol> <SimpleCol>2000</SimpleCol> </SimpleTableHeader> <SimpleTableBody> <SimpleRow> <SimpleCol>Q1</SimpleCol> <SimpleCol>68</SimpleCol> <SimpleCol>75</SimpleCol> </SimpleRow> <SimpleRow> <SimpleCol>Q2</SimpleCol> <SimpleCol>72</SimpleCol> <SimpleCol>86</SimpleCol> </SimpleRow> <SimpleRow> <SimpleCol>Q3</SimpleCol> <SimpleCol>81</SimpleCol> <SimpleCol>69</SimpleCol> </SimpleRow> <SimpleRow> <SimpleCol>Q4</SimpleCol> <SimpleCol>88</SimpleCol> <SimpleCol>85</SimpleCol> </SimpleRow> </SimpleTableBody> </SimpleTable> </SimpleContainer> </SimpleResult>
SimpleImage displays an image.
Used to reference an external image.
none
<!ELEMENT SimpleImage EMPTY)>
<!ATTLIST SimpleImage
src CDATA #REQUIRED
target CDATA #REQUIRED
alt CDATA #IMPLIED
width CDATA #IMPLIED
height CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
addImageExtension (true|false) "true"
>
<SimpleResult> <SimpleContainer> <SimpleText> <SimpleTextItem>Oracle Logo</SimpleTextItem> </SimpleText> <SimpleImage target="<%=baseURL%>ora" alt="Oracle Logo">Oracle Image</SimpleImage> </SimpleContainer> </SimpleResult>
SimpleBreak provides a logical break in the layout.
Used to provide a logical break.
none
<!ELEMENT SimpleBreak EMPTY>
<!ATTLIST SimpleBreak>
<SimpleResult> <SimpleContainer> <SimpleText> <SimpleTextItem>List 1a</SimpleTextItem> <SimpleTextItem>List 1b</SimpleTextItem> </SimpleText> <SimpleBreak /> <SimpleText> <SimpleTextItem>List 2a</SimpleTextItem> <SimpleTextItem>List 2b</SimpleTextItem> </SimpleText> </SimpleContainer> </SimpleResult>
SimplePhone references a phone number.
A phone number.
#PCDATA (the name of the phone)
<!ELEMENT SimplePhone (#PCDATA)>
<!ATTLIST SimplePhone
target CDATA #REQUIRED
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleText> <SimpleTextItem>Phone Book</SimpleTextItem> </SimpleText> <SimplePhone target="14155551212">James</SimplePhone> <SimplePhone target="16505551212">John</SimplePhone> <SimplePhone target="14085551212">Mark</SimplePhone> <SimplePhone target="17075551212">Deanna</SimplePhone> </SimpleContainer> </SimpleResult>
SimpleEmail references an email address.
Used to reference an email address.
#PCDATA (the name of the user)
<!ELEMENT SimpleEmail (#PCDATA)>
<!ATTLIST SimpleEmail
target CDATA #REQUIRED
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleText> <SimpleTextItem>Email Test</SimpleTextItem> </SimpleText> <SimpleEmail target="david123@oracle.com">David</SimpleEmail> <SimpleEmail target="lisa123@oracle.com">Lisa</SimpleEmail> </SimpleContainer> </SimpleResult>
SimpleHref provides an anchor to another resource.
An anchor to another resource.
#PCDATA (the name of the link)
<!ELEMENT SimpleHref (#PCDATA)>
<!ATTLIST SimpleHref
target CDATA #REQUIRED
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
type (accept|option1|option2)
label CDATA
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
See Section A.12, "SimpleHelp".
See Section A.12, "SimpleHelp".
SimpleHelp indicates a help text.
Used for help text.
#PCDATA (the name of the help text)
<!ELEMENT SimpleHelp (#PCDATA)>
<!ATTLIST SimpleHelp
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
<SimpleResult> <SimpleContainer> <SimpleText> <SimpleTextItem>Welcome to</SimpleTextItem> </SimpleText> <SimpleImage target="<%=baseURL%>ora" alt="Oracle Logo">Oracle Image</SimpleImage> <SimpleBreak></SimpleBreak> <SimpleBreak></SimpleBreak> <SimpleHref target="<%=baseURL%>login.jsp">Login</SimpleHref> </SimpleContainer> </SimpleResult>
Defines a timer for displaying a SimpleContainer.
When the timer expires the target url is displayed.
none
<!ELEMENT SimpleTimer EMPTY>
<!ATTLIST SimpleTimer
timer %number #REQUIRED
title CDATA #IMPLIED
name CDATA #IMPLIED
link CDATA #IMPLIED
target CDATA #REQUIRED
valign (top|center|bottom) "top"
halign (left|center|right) "left"
wrapmode (wrap|nowrap) #IMPLIED
>
<SimpleResult> <SimpleContainer name = "Advertisement Container"> <SimpleTimer target ="#actualpage" timer = "30" /> <Simple Text> <SimpleTextItem> This page can contain advertisement </SimpleTextItem> </SimpleText> </SimpleContainer> <SimpleContainer name ="actualpage"> <SimpleText> <SimpleTextItem> Welcome to the actual page </SimpleTextItem> </SimpleText> </SimpleContainer> </SimpleResult>
|
Copyright © 2001 Oracle Corporation. All Rights Reserved. |
|