XHTML Mobile Profile
XHTML Mobile Profile ( XHTML MP ; German XHTML Mobile Profile ) is a markup language specially designed for mobile phones and PDAs . The XHTML MP specification is defined by the Open Mobile Alliance (OMA).
The XHTML Mobile Profile consists of modules according to the XHTML modularization . It is a subset of XHTML 1.1 based on XHTML Basic . XHTML MP is mainly used in conjunction with Wireless CSS (WCSS) and ECMAScript Mobile Profile (ESMP).
In addition to the modules of XHTML Basic, XHTML MP 1.0 also supports:
- Forms (partially)
-
fieldset
andoptgroup
tags.
-
- Representation (partially)
-
b
,big
,hr
,i
Andsmall
tags.
-
- Style sheets
-
style
Element andstyle
attribute.
-
XHTML MP 1.1 also provides support for scripts, most notably ECMAScript Mobile Profile (ESMP).
XHTML MP 1.2 has full support for XHTML forms and support for the object
element.
example
An XHTML Mobile Profile Page can look like this:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html> <head> <title>Ein XHTML Mobile Profile Dokument</title> </head> <body> <p style="color: red;">Das ist ein roter Absatz.</p> </body> </html>
There is also an alternative DTD available from Openwave, which contains some extensions compared to the normal XHTML Mobile Profile:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//OPENWAVE//DTD XHTML Mobile 1.0//EN" "http://www.openwave.com/dtd/xhtml-mobile10.dtd"> <html> <head> <title>Ein XHTML Mobile Profile Dokument</title> </head> <body> <p style="color: red;"><u>Das ist ein rot-unterstrichener Absatz.</u></p> </body> </html>
Web links
- XHTML Mobile Profile 1.0 specification (PDF; 58 kB)
- Extension of the Openwave version ( Memento from February 12, 2010 in the Internet Archive )
- Wireless CSS Candidate Version 1.1 (PDF; 463 kB)
- ECMAScript Mobile Profile Candidate Version 1.0 (PDF; 1.29 MB)