LIS 523/5 - Handheld Devices
WML
WML, or Wireless Markup Language,
is a language, written in XML,
used to specify content and user interface
for WAP (Wireless Application Protocol) devices,
such as mobile phones.
WML is supported by almost every mobile phone browser.
It is scalable from two-line text displays up
and supports a simple scripting language called WMLScript.
WML pages are accessed in the same way as HTML pages;
the server must deliver them
with the text/vnd.wap.wml MIME type.
In addition, the server should support some or all
of the related MIME types
- application/vnd.wap.wmlc
for .wmlc compressed WML files,
- text/vnd.wap.wmlscript
for .wmls WMLScript files,
- application/vnd.wap.wmlscriptc
for .wmlsc compressed WMLScript files, and
- image/vnd.wap.wbmp
for .wbmp wireless bitmap files.
Some hosting services
(for example,
LFC Hosting)
have plans that include WAP support.
Otherwise,
you should look for a plan that allows custom MIME types.
Whereas HTML uses the "page" metaphor,
WML relies on a "deck of cards" metaphor:
a typical WML document contains one or more "cards"
through which the user can navigate in sequence or via
hyperlinks.
The only normal Web browser that can view WML files is Opera,
and, even then,
Opera makes no provision for self-identifying as a WAP browser
to avoid being redirected to an HTML version of a file.
In Windows,
Netscape Navigator and Firefox may incorrectly try to open WML files
with Windows Media Player,
even though they are not associated with that program;
Internet Explorer simply cannot find a suitable application to use.
You can view WML files on a desktop machine
with a free viewer such as OpenWave Systems' UP.Simulator.
HDML
HDML,
or Handheld Device Markup Language,
is a proprietary language of Openwave,
and files in this language can be viewed
only with Openwave browsers.
The client requests a page through Openwave
using a protocol called HDTP
(Handheld Device Transport Protocol),
rather than WAP,
which was developed later.
Openwave requests the page from the server,
and the server delivers it to Openwave,
via HTTP.
Openwave then transmits the page to the mobile device via HDTP.
The server must give
the MIME type text/x-hdml
to the file.
HTML for Handhelds
Some wireless device browsers,
such as the Blackberry Browser,
Neomar's WAP Browser for Palm,
or the Opera browser used in Sony Ericsson's P800 handset,
have limited support for HTML.
Format and functionality
are not fully preserved.
The browser may note on the screen
that the document has been converted.
Conversion make take place either on the device itself
or on a special server.
HTML files designed for handheld use
look like other HTML files
except that they have to be simpler
and they may contain a meta tag such as
<meta NAME="HandheldFriendly"
CONTENT="True">
Special rendering options for pages for handheld devices
can be specified in a style sheet
in an @media handheld{ } block.
Examples of HTML pages designed for handheld use
are http://slashdot.org/palm,
http://www.hollywood.com/avantgo/,
and http://aa.flightlookup.com/omnisky/.
Opera's SSR (small-screen rendering) technology,
available in Sony Ericsson's P800 handset,
reformats a Web page written in HTML
to fit on a smaller screen.
You can preview the small-screen display on a Windows computer
by pressing Shift-F11 in Opera 7 and above.
A more recent trend is for handheld devices
that support full Web browser capabilities;
for example, the Nokia 7700 has a 640x320 pixel screen,
allowing it to run Opera in something approaching VGA resolution.
Systems for browsing the Web on low-definition television sets
present similar considerations to handhelds.
For example,
in the MSN TV Viewer rendering
of the instructor's Web page,
text appears larger than normal
and table width is reduced to fit the screen.
For More Information
- ACCESS Co. 2007.
Netfront Browser for Mobile.
http://www.access-company.com/products/netfrontmobile/index.html.
(Illustrates features of the NetFront browser,
versions of which
"have been deployed in millions of Internet devices".)
- Blau, J. 2003.
"Opera offers mobile browsing".
PCWorld.com.
http://www.pcworld.com/news/article/0,aid,110497,00.asp.
- Kacin, M. 2007.
Optimizing Web pages for handheld devices.
ZATZ Publishing.
http://www.palmpower.com/issues/issue199902/avantgotips001.html.
(Extensive list of tips,
with emphasis on Palm devices.)
- Microsoft. 2003.
MSN TV Developer Support Site.
http://developer.msntv.com/.
(A free downloadable simulator
and other resources.)
- Neomar. 2000.
Browser User Guide.
http://www.palm.com/support/mik/wapguide.pdf.
(PDF file on how to use one of the browsers
for the Palm wireless device.)
- Nokia. 2007.
All Phones.
http://www.nokia.ca/english/products/index.asp.
(Brief product information.)
- Openwave Systems. 2006.
Openwave Developer Network - Tools & SDK
- Openwave Phone Simulator.
http://developer.openwave.com/dvl/tools_and_sdk/phone_simulator/
(Openwave Phone Simulator, available for free download,
assists in developing and previewing Web pages for wireless devices.)
- Opera Software. 2007.
Opera Mobile™.
http://www.opera.com/products/mobile/.
- Rogers Communications. 2007.
Rogers.com - Wireless Products.
http://www.shoprogers.com/store/wireless/products/phones/overview.asp?brand=22.
(Some information about the Blackberry.)
- Stowell, C. 1999.
Designing Web Sites for PDAs.
http://www.webmonkey.com/webmonkey/99/20/index2a.html?tw=design.
(Article drawing on experience at Wired News.)
- ThinkBurst Media. 2005.
Wireless Developer Network - Online WAP Training and Tutorials.
http://www.wirelessdevnet.com/channels/wap/training/.
(WML Tag and WMLScript reference
and various tutorials on WAP and WML.)
Home
Last updated April 23, 2007.
This page maintained by
Prof. Tim Craven
E-mail (text/plain only): craven@uwo.ca
Faculty of Information and
Media Studies
University of Western
Ontario,
London, Ontario
Canada, N6A 5B7