XHTML Mobile Profile

XHTML Mobile Profile

XHTML Mobile Profile (XHTML MP) is a hypertextual computer language standard designed specifically for mobile phones and other resource-constrained devices.

It is an XHTML document type defined by the Open Mobile Alliance. XHTML-MP is derived from XHTML Basic 1.0 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 an XHTML-MP browser may not be fully conforming on all modules. The XHTML MP 1.2 DTD the current recommendation, finalized in March 2008.

DOCTYPE

To validate as XHTML-MP, a document must contain a proper Document Type Declaration, or DOCTYPE, depending on the version of specification followed:

Note that a series of revisions have been issued to correct technical errors in the above DTDs, and the DTD format is more complex and less widely supported than that of standard HTML.

MIME types

The MIME type for XHTML Mobile Profile is "application/vnd.wap.xhtml+xml". Conforming user agents should also accept "application/xhtml+xml" and "text/html". Many desktop browsers will only validate XHTML-MP at display time, if an XML MIME type is specified.

Versions

* Version 1.2 added form and object support.
* Version 1.1 added full scripting support intended to be used with ECMAScript Mobile Profile.
* Version 1.0 extended XHTML Basic 1.0 with certain presentation elements and basic scripting support.

upported Modules

Modules included in XHTML-MP 1.2 are:
* Structure
* Texts
* Hypertext
* List
* Forms
* Basic Tables
* Image
* Object
* Metainformation
* Scripting
* Style Sheet
* Style Attribute
* Link
* Base

XHTML-MP 1.2 also includes partial support for:
* Presentation
* Intrinsic Events
* Legacy

Finally, version 1.2 includes an OMA-specific module ("Text Input Modes") for dealing with the various input modes allowed on mobile phones.

Development pitfalls

Many problems arise when content written in XHTML is shown on different devices. Some will honor colors specified in CSS while some will not, some will render tables properly while others won't, just to mention some examples. Building an adaptive application means delivering different content to different devices, according to their capabilities. This can bring huge complexity, given the number of different devices in the market with different hardware (screen-sizes, coloring capacity, buttons, memory and speed) and browsers. Software updates on mobile browsers are much more difficult than with desktop browsers, and as a result broken software tends to stay in use until the phone is discarded.

Many software initiatives present their solution to this problem. Most of them provide a proprietary language to write WAP content, which will render different content (XHTML-MP, WML, CHTML, etc) according to the requesting device. One free initiative is WURFL, which uses a hierarchical XML configuration file mapping hundreds of device capabilities, and a "Wireless Abstraction Layer" called WALL which allows writing tags that are automatically converted into the type of markup supported by the device. The W3C DDWG has created a specification to standardize access to repositories of device capability information, to be part of a common framework for content adaptation technologies.

Example

A complete valid and well-formed example is:

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Hello</title> </head> <body> <p>Hello <a href="http://example.org/">world</a>.</p> </body></html>
When served with a MIME type of "application/xhtml+xml" or "application/vnd.wap.xhtml+xml".

External links

* [http://www.openmobilealliance.org/ www.openmobilealliance.org]
* W3C Recommendation for [http://www.w3.org/TR/xhtml11/ XHTML 1.1]
* W3C Recommendation for [http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/ Modularization of XHTML] as of April 10, 2001.
* [http://patterns.littlespringsdesign.com Mobile Design Resources]
* [http://www.passani.it/gap/ XHTML-MP Authoring Practices]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • XHTML Mobile Profile — (XHTML MP, engl. „mobiles Profil der erweiterbaren Auszeichnungssprache für Hypertext“) ist eine Auszeichnungssprache speziell für Mobiltelefone und PDAs. Die XHTML MP Spezifikation wird definiert durch die Open Mobile Alliance (OMA). Das XHTML… …   Deutsch Wikipedia

  • XHTML-MP — XHTML Mobile Profile (XHTML MP, engl. „mobiles Profil der erweiterbaren Auszeichnungssprache für Hyptertext“) ist eine Auszeichnungssprache speziell für Mobiltelefone und PDAs. Die XHTML MP Spezifikation wird definiert durch die Open Mobile… …   Deutsch Wikipedia

  • XHTML MP — XHTML Mobile Profile (XHTML MP, engl. „mobiles Profil der erweiterbaren Auszeichnungssprache für Hyptertext“) ist eine Auszeichnungssprache speziell für Mobiltelefone und PDAs. Die XHTML MP Spezifikation wird definiert durch die Open Mobile… …   Deutsch Wikipedia

  • XHTML — Расширение .xhtml, .xht, .xml, .html, .htm MIME application/xhtml+x …   Википедия

  • XHTML Basic — (engl. „elementares XHTML“) ist eine auf XML basierende Version von XHTML, die wie WML auf mobile Geräte, wie Handys und PDAs, zugeschnitten ist. Die Version 1.0 wurde von Mitarbeitern des W3C entwickelt und am 3. November 2000 freigegeben.… …   Deutsch Wikipedia

  • Mobile browser — Web Browser for S60 is an example of a mobile browser. A mobile browser, also called a microbrowser, minibrowser, or wireless internet browser (WIB), is a web browser designed for use on a mobile device such as a mobile phone or PDA. Mobile… …   Wikipedia

  • XHTML — Vorlage:Infobox Dateiformat/Wartung/magic fehltVorlage:Infobox Dateiformat/Wartung/website fehlt XHTML Dateiendung …   Deutsch Wikipedia

  • XHTML 1.1 — Vorlage:Infobox Dateiformat/Wartung/magic fehltVorlage:Infobox Dateiformat/Wartung/website fehlt XHTML Dateiendung …   Deutsch Wikipedia

  • Xhtml — Каскадные таблицы стилей (CSS) Кодировки символов Сравнение движков отображения Семейство шрифтов Редактор HTML Элементы HTML Мнемоники в HTML Скрипты в HTML Юникод и HTML Цвета в Web (Web colors) WWW Консорциум (W3C) XHTML (англ. Extensible… …   Википедия

  • Comparison of layout engines (XHTML) — HTML HTML and HTML5 Dynamic HTML XHTML XHTML Mobile Profile and C HTML Canvas element Character encodings Document Object Model Font family HTML editor HTML element HTML Frames HTML5 video HTML scrip …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”