|
While XHTML MP enables the creation of visually appealing pages, developers with a background in WML or HDML will find that some of the features available in those mark-ups are no longer available. Because of this, migrating from WML/HDML to XHTML cannot be automated and a more reliable and functioning application will result from doing it manually with the help of the information presented here. This chapter gives an overview of the differences between WML/HDML and explains which alternative constructs can be used for features that are no longer supported.
Please note that, in case you absolutely need a WML feature, WAP 2.0 devices still support WML 1.X because of backward compatibility. No Deck-Card Metaphor WML allowed you to define several pages inside one document. The purpose of this was to avoid round-trips to the application server for pages that did not require further computation. XHTML MP does not allow this. Feel free to organize a round trip to the server for each page. You might, however, consider either using multi-part documents or possibly longer XHTML documents with anchors allowing the user to navigate through the page. No Variables No WML/HDML variables. The idea is that future versions of XHTML MP will support some flavor of ECMAScript. This will enable some of the features available for WML 1.X today. Variables had multiple uses in WML/HDML. Let's look at each of them and see the alternative:
WMLScript is not available in XHTML MP. However, it may be available on some devices for backwards compatibly reasons. In reality, WMLScript was not widely embraced by programmers, but applications designed around it may need to be redesigned to manage without it. No Softkeys Softkeys are gone, and this is a shame, since they were a very important feature for usability. Sofkeys allowed users to trigger obvious operations with just one click. Openwave plans to support softkeys again for its browser using CSS syntax. Stay tuned. The only thing that reminds of softkeys in XHTML is the accesskey attribute that lets you program a numeric keyboard shortcut to hyperlinks (typically menu items) and form elements. No Events Events were exclusive to WML/HDML. They are gone. If you depended on them, you will need to rethink the flow of your application (or stick to WML for some time). The only event that can be simulated to some extent is the ontimer event thanks to the http-refresh attribute of the META tag (see section on variables above).
XHTML-MP Style Guide Chapters XHTML-MP Style Guide Index 1. History of XHTML Mobile Profile 2. XHTML MP in practice 3. Menus in XHTML Mobile profile 1.0 4. Text-flow 5. Forms: Collecting User Data 6. Images and Objects 7. Testing Your Applications Appendix A Appendix B |