So you've heard of HDML and you've heard of WML, but you don't know the differences, and you don't know which to use. Perhaps you're already using one and thinking of switching to the other. Perhaps you've heard that they are the same (as I first did). Let's clear up some of this confusion. First, some back ... So you've heard of HDML and you've heard of WML, but you don't know the differences, and you don't know which to use. Perhaps you're already using one and thinking of switching to the other. Perhaps you've heard that they are the same (as I first did). Let's clear up some of this confusion. First, some background information. In May of 1997 Unwired Planet, a member of the World Wide Web Consortium (W3C), submitted a request to the W3C for the HDML (Handheld Device Markup Language) Specification. The full specification can be found at www.w3.org. Although the submission was acknowledged by the W3C, it is still considered a "working draft" and no further enhancements have been made since its inception. In June of 1999 the WAP Forum, currently enrolling over 200 members, released WML (Wireless Markup Language) v1.1 and shortly after, it released v1.2 in November of 1999. The most recent WML Specification can be found at www.wapforum.org. Both languages share the same basic programming model and functionality; however, there are some notable differences to discuss. The main difference is that WML is XML-based, while HDML is not. The main benefit of being XML-based is that a company can use commercially available XML tools to generate, parse and manipulate WML, and they can also user XSL/XSLT to construct WML decks from XML meta-languages. Another major difference between HDML and WML is that HDML does not allow scripting, (sorry JavaScripters), while WML allows it's own version of JavaScript, called none other than WMLScript. WMLScript allows the programmer to check the validity of user input, access other facilities on the device (make a call on a phone, add a number to the phone book, etc.), generate messages and dialogs, and other device-specific tasks. HDML has the functionality to do most of the same tasks; however, using WMLScript reduces overall network traffic by performing the task locally. HDML does not have a DTD (Document Type Definition) while WML does. As expected, there are also other smaller functionality and syntax differences such as WML's intrinsic events and the ways in which variables are set and passed. Feature | HDML | WML | XML-based | No | Yes | DTD available | No | Yes | Scripting | None | WMLScript | Display Cards | Yes | Yes | Choice/Select Cards | Yes | Yes | Entry/Input Cards | Yes | Yes | Nodisplay Cards | Yes | Yes | Images in Text and Anchors | Yes | Yes | Variables | Yes | Yes | Deck Access Control | Yes | Yes | Deck Cache Control | Yes | Yes | Timers | No | Yes | Multiple Choice Lists | No | Yes | Bookmarks | Yes | No* | Nested Activities | Yes | No** | Images in Labels and Choices | Yes | No** | Mobile Originated Pre-fetch | Yes | No** | Key Accelerators for Links | Yes | No** | * UP.Browser supports this feature via WML meta tag ** Supported by Up.Browser 4.0 via Phone.com WML extended tag So which language is the most promising pick for the future? Based on the aforementioned facts, I'd have to say that WML is going to live much longer and go farther than HDML. Unfortunately, I think Unwired Planet came out with HDML just a tad before its time. When the HDML Spec was released, XML was so new, Unwired Planet did not know enough about it to make HDML based upon it. Although the Phone.com's UP.Link platform will continue to support applications written in HDML, they are recommending to its users to move to WML. Remembering this and all the other limitations of HDML, I think WML, or some form thereof, will stick around to see the future of WAP. In Europe and Japan, some WAP devices already do not accept the HDML format. In the US and Canada many of the commercially available CDMA and CDPD phones only support HDML. It is most likely that the future US and Canadian phones will all support WML also. Fortunately, it is not difficult to convert HDML to WML and the learning curve should be minimal. References: W3Schools.com WAP Forum W3C Submissions Phone.com
| | DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
More ASP Articles More By aspfree developerWorks - FREE Tools! | Hold your calendar on January 30, 2008 for this free webcast on the new i5/OS. Rational's Enterprise Modernization products will be discussed at this webcast as they help to drive the application development environment for this new System i OS. <br />And learn how i5/OS will take you to the next step of efficient, resilient business processing. You will hear about the new i5/OS capabilities as it will be the most significant i5/OS release in years. If you cannot join the webcast on 1/30/08 you can still use this link to listen to the replay.<br /> FREE! Go There Now!
| | | | Learn how you can extend modern application lifecycle management to IBM System z through the IBM Rational Software Delivery Platform (SDP). The Did you say mainframe? e-kit includes podcasts, webcasts, tutorials, white and red papers, demos, and articles designed to help ease the challenges of modernizing your enterprise. This complimentary kit for mainframe developers is a practical, how-to guide for making the most of an existing development environment, including the skills and infrastructure already in place at an established enterprise. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial version of WebSphere Business Modeler Advanced V6.1.1, IBM’s premier business process modeling and analysis tool for business users that offers process modeling, simulation, and analysis capabilities. IBM WebSphere Business Modeler helps you visualize, understand, and document business processes for continuous improvement. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial of the latest release of IBM Lotus Sametime Standard V8.0. Lotus Sametime Standard V8.0 is a platform for unified communications and collaboration that combines security features with an extensible, open solution including integrated Voice over IP, geographic location awareness, mobile clients, and a robust Business Partner community offering telephony and video integration. FREE! Go There Now!
| | | | In this tutorial, you can learn how to install and configure the IBM Rational Asset Manager Eclipse client, explore the different views in the Asset Management perspective, learn various search techniques, work with existing assets, and submit a new asset. FREE! Go There Now!
| | | | Analysts, architects, and developers who have existing COBOL or PL/I skills and want to extend those skills to deploy new workloads on the mainframe can use the IBM Enterprise Modernization Sandbox for System z to find hands-on walkthroughs of common real world scenarios. The scenarios provide examples of how to rapidly design, create, assemble, test, and deploy high-quality Web, Web services, portal, and SOA applications for IBM CICS, IBM IMS, and IBM WebSphere Application Server. FREE! Go There Now!
| | | | Join this Rational Talks to You teleconference on December 4 at 1:00 pm ET to discuss how Rational Method Composer can help meet your compliance objectives. Get your questions answered! FREE! Go There Now!
| | | | Learn the basics of the IBM Customer Information Control System (CICS). With a hands-on exercise, learn how to get your first CICS application up and running on your desktop using TXSeries V6.1 for Windows. The tutorial shows you how to download and install a free trial version of TXSeries V6.1. FREE! Go There Now!
| | | | Visit IBM developerWorks to try the IBM SOA Sandbox for process. The SOA Sandbox for process focuses on providing a trial environment with the necessary tooling and components required to gain a better understanding of business processes and how to best improve existing business processes to derive value quickly. FREE! Go There Now!
| | | | Attend this launch webcast with Scott Hebner, Vice President of IBM Rational Marketing and Strategy, where he will overview Rational’s new offerings and programs to help customers accelerate software innovation on System z. He will discuss how these solutions help organizations extend their core business processes toward modern architectures such as SOA and web technologies to deliver business improvements that stand the test of time. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |