Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 7

WML

Usha
Agenda

Markup Language: WML

• Web equivalent: XML/HTML


• Tag-based browsing language
• Screen management
• Data input
• Hyperlinks
• XML based language
• Inherits from HDML and HTML
• WML Cards
– User interactions are split into cards
– Navigation between cards possible
• Card Navigation
– Hyperlinks, UI event handling
– History
• State Management
– Shared Variables
– Reduced network traffic
WML

Syntax
•<p> paragraph </p>
•Linebreak <br/>
•WML Tasks e.g. <go>, <prev>, <refresh>, …
Tokenized WML sent to client
•Implies content provider does not know the size

Deck = file.wml
Must contain atleast one card
Eg.
Agenda
• The first line specifies the XML version number.
• The second line specifies the SGML public document
identifier.
• The third line specifies the location of the WML document
type definition (DTD). The DTD can be located in the
network, or you can store it locally to make accessing it
faster. The Nokia WAP Toolkit includes the DTD file
wml.xml, found in the directory <installation
directory>\dtd.
• The fourth line is the root element of the XML document of
which there may only be only one and it must match the
root element name as indicated in the first argument of the
document type. All WML documents must begin with a
<wml> tag.
• The following lines define a card containing a start and an
end tag and text to be displayed to the user.
• All WML decks must end with a </wml> tag.
Agenda

You might also like