XML technologies / XSLT / Java and XSLT / Applications for mobile devices / Technologies for mobile devices
(Excerpt from “Java und XSLT” by Eric M. Burke)
Current mobile technologies are still in their infancy, so several competing markup languages are in use. In Japan, i-mode leads the market. Developed by NTT DoCoMo, it uses a subset of HTML known as Compact HTML (cHTML). Its syntax closely resembles HTML; it is proprietary and not XML-based.
In Europe and the USA, Wireless Access Protocol (WAP) leads. WAP uses WML, which differs markedly from HTML and cHTML. Many vendors will probably adopt XHTML Basic over the next few years, although current languages will require support for a long time. WML and cHTML will then be seen as transitional technologies that enabled the start of mobile services. In any case, XSLT can reduce vendors’ risk as technologies advance.
Mobile-phone simulators
This chapter uses several mobile-phone simulators. They all run on PCs and let developers test different devices without buying phones or using mobile Internet services. Here are some products to start with:
Ericsson WapIDE
Motorola Mobile Application Development Kit
Nokia WAP Toolkit
Openwave Software Development Kit
Why not HTML?
Almost every website uses HTML, and theoretically mobile devices could too. All they need is a web browser, a large display, ample computing power and enough bandwidth: precisely what mobile devices lack!
Problems with HTML
Consider this webpage:
<boDY>
<h1 align=center>Willkommen auf unserer Homepage!</h1
<ul>
<LI>erster Punkt
<LI>zweiter Punkt
<Li>dritter PunktDespite its errors, Netscape 4.x, Netscape 6 and IE 5.5 display this page correctly, with no warning or error. Browsers tolerate HTML errors remarkably well because vendors and users want every page displayed. Since very few websites use well-formed HTML, browsers must tolerate many errors. A browser unable to display badly written HTML cannot succeed commercially.
Nonexperts see this as an advantage, allowing them to create sites without worrying much about capitalization, quotes or correctly nested tags. They overlook the resulting browser complexity. Parsers handling every imaginable form of bad HTML produce large, complex browsers too resource-hungry for mobile devices.
Until pages use well-formed HTML or XHTML, browsers must interpret sloppy HTML; until browsers become stricter, authors will keep writing sloppy code.
Limitations of current devices
Another argument against HTML is that current mobile devices have tiny displays, little memory and slow connections. A five-line display cannot show HTML tables, frames or large fonts. These devices need smaller markup languages that use their resources effectively.
Copyright © 2002 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “Java und XSLT” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de