This page was last modified 19:56, 6 March 2008.
XHTML MP
From Forum Nokia Wiki
XHTML - eXtensible HyperText Markup Language - Mobile Profile (MP) is a subset of XHTML 1.1 for design mobile websites for WAP 2.0 browsers. Last mobile browsers supports CSS, ECMAScript and AJAX applications.
XHTML MP is derived from XHTML Basic by adding XHTML Modules, with later versions of the standard adding more modules. However, for certain modules, XHTML MP does not mandate a complete implementation so a XHTML-MP browser may not be fully conforming on all modules.
It is the evolution of WML documents. With XHTML you can organize the document and present the information. Using CSS you can layout elements and define style information (color, sizes, etc.)
Versions
1.0: First Version 1.1: Add support of ECMAScript Mobile Profile 1.2: Add support of form and object
WML Features lost in XHTML MP
- XHTML MP does not support decks and cards, you have one only page to show per XTHML document
- XHTML MP does not support timers. ECMAScript MP can handle this.
- XHTML MP does not support events. ECMAScript MP can handle this.
- XHTML MP does not support variables. ECMAScript MP can handle this.
- XHTML MP does not support client-side scripting until ECMAScript MP MP appears
- XHTML MP does not support programmable softkeys. ECMAScript MP can handle this.
- XHTML MP does not support the u tag (for underline)
- XHTML MP does not support the format attribute for input fields, although XHTML MP 1.2 provides the inputmode attribute to the same effect
- XHTML MP does not support posting of data with anchor links
Syntax
An XHTML MP file has a .xhtml, .htm or .html extension and must be provided with one of this MIME types:
- application/vnd.wap.xhtml+xml
- application/xhtml+xml
- text/html
Inside the XML document, the rules are
- Tags must be closed properly
- Tags and attributes must be in lowercase
- Value of attributes must be enclosed within quotation marks
- No attribute minimization is allowed
- Tags must be nested properly
Hello World XHTML MP
<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>XHTML MP Hello World</title> </head> <body> <p>Hello world. Welcome to Forum Nokia Wiki.</p> </body> </html>
Links
- www.openmobilealliance.org
- XHTML MP Specification as of 20 October, 2006.
- W3C Recommendation for XHTML 1.1
- W3C Recommendation for XHTML Basic 1.0
- W3C Recommendation for Modularization of XHTML as of April 10, 2001.
- W3C Candidate Recommendation for XHTML Basic 1.1
- An Overview of Mobile Versions of XHTML
- XHTML-MP Authoring Practices
- W3C Mobile Web Best Practices for XHTML Basic 1.1
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| view xhtml page in internet explorer using tomcat | INUYASHA | Browsing and Mark-ups | 1 | 2003-12-10 14:19 |
| When you have WAP 2.0 mobile device ... | aricdromi | General Browsing | 1 | 2002-05-16 07:06 |
| A Jtidy and mime and nokia6600 question | mikeliu1976 | Browsing and Mark-ups | 0 | 2004-09-29 08:39 |
| audio files and xhtml | glawless | Browsing and Mark-ups | 1 | 2003-05-15 04:15 |
| XHTML Testing in a browser | dilipapte | Browsing and Mark-ups | 2 | 2006-08-28 10:24 |
