XHTML_Mobile_Profile
[Wikipedia|▼Menu]
.mw-parser-output .sidebar{width:auto;float:right;clear:right;margin:0.5em 0 1em 1em;background:#f8f9fa;border:1px solid #aaa;padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:75%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:720px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}

HTML

各種項目

HTML

ダイナミックHTML

HTML5

audio要素

canvas要素

video要素


XHTML

Mobile Profile

C-HTML


HTML要素

HTMLフレーム(英語版)

HTML エディター

文字符号化(英語版)

Unicode(英語版)


Document Object Model

スタイルシートCSS

フォントファミリー(英語版)

ウェブカラー

HTMLスクリプティング(英語版)

JavaScript

WebGL

WebCL


W3Cバリデータ

WHATWG

後方互換モード(英語版)

ウェブストレージ

レンダリングエンジン

比較

マークアップ言語(英語版)

HTML(英語版)

XHTML(英語版)

.mw-parser-output .hlist ul,.mw-parser-output .hlist ol{padding-left:0}.mw-parser-output .hlist li,.mw-parser-output .hlist dd,.mw-parser-output .hlist dt{margin-right:0;display:inline-block;white-space:nowrap}.mw-parser-output .hlist dt:after,.mw-parser-output .hlist dd:after,.mw-parser-output .hlist li:after{white-space:normal}.mw-parser-output .hlist li:after,.mw-parser-output .hlist dd:after{content:" ・\a0 ";font-weight:bold}.mw-parser-output .hlist dt:after{content:": "}.mw-parser-output .hlist-pipe dd:after,.mw-parser-output .hlist-pipe li:after{content:" |\a0 ";font-weight:normal}.mw-parser-output .hlist-hyphen dd:after,.mw-parser-output .hlist-hyphen li:after{content:" -\a0 ";font-weight:normal}.mw-parser-output .hlist-comma dd:after,.mw-parser-output .hlist-comma li:after{content:"、";font-weight:normal}.mw-parser-output .hlist-slash dd:after,.mw-parser-output .hlist-slash li:after{content:" /\a0 ";font-weight:normal}.mw-parser-output .hlist dd:last-child:after,.mw-parser-output .hlist dt:last-child:after,.mw-parser-output .hlist li:last-child:after{content:none}.mw-parser-output .hlist dd dd:first-child:before,.mw-parser-output .hlist dd dt:first-child:before,.mw-parser-output .hlist dd li:first-child:before,.mw-parser-output .hlist dt dd:first-child:before,.mw-parser-output .hlist dt dt:first-child:before,.mw-parser-output .hlist dt li:first-child:before,.mw-parser-output .hlist li dd:first-child:before,.mw-parser-output .hlist li dt:first-child:before,.mw-parser-output .hlist li li:first-child:before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child:after,.mw-parser-output .hlist dd dt:last-child:after,.mw-parser-output .hlist dd li:last-child:after,.mw-parser-output .hlist dt dd:last-child:after,.mw-parser-output .hlist dt dt:last-child:after,.mw-parser-output .hlist dt li:last-child:after,.mw-parser-output .hlist li dd:last-child:after,.mw-parser-output .hlist li dt:last-child:after,.mw-parser-output .hlist li li:last-child:after{content:")\a0 ";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li:before{content:" "counter(listitem)" ";white-space:nowrap}.mw-parser-output .hlist dd ol>li:first-child:before,.mw-parser-output .hlist dt ol>li:first-child:before,.mw-parser-output .hlist li ol>li:first-child:before{content:" ("counter(listitem)" "}.mw-parser-output .navbar{display:inline;font-size:75%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}.mw-parser-output .infobox .navbar{font-size:88%}.mw-parser-output .navbox .navbar{display:block;font-size:88%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}









XHTML Mobile Profile(XHTML MP)は、ハイパーテキストコンピュータ言語の規格であり、携帯電話などのリソースの限られた機器で利用することを目的として設計された。

オープン・モバイル・アライアンス (OMA) が定義した XHTML DTD である。XHTML MP は XHTML Basic 1.0 に XHTML Modules を追加したものであり、その後さらにモジュールが追加されている。しかし一部のモジュールは XHTML MP 規格では実装を強制されていないため、XHTML MP 準拠ブラウザが全てのモジュールを実装しているとは限らない。最新の勧告である XHTML MP 1.2 DTD は、2008年3月に完成した。
DOCTYPE

XHTML MP 準拠を名のるには、仕様のバージョンに応じて、以下のいずれかの DTD あるいは DOCTYPE を含まなければならない。<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN""http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN""http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd"><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN""http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">

なお、一連のリビジョンは以前のDTDの技術的問題を解決すべく発行されている。また、DTDフォーマットは標準のHTMLに比較すると複雑であり、あまり広くサポートされているとは言えない。
MIMEタイプ

XHTML Mobile Profile のMIMEタイプは "application/vnd.wap.xhtml+xml" である。準拠しているユーザーエージェントは "application/xhtml+xml" と "text/html" を受理すべきとされる。XML MIMEタイプが指定される場合、多くのデスクトップのブラウザは表示の際に XHTML MP 有効にするだけである。
バージョン

Version 1.0 - XHTML Basic 1.0 に表示要素をいくつか追加し、基本的なスクリプトをサポート

Version 1.1 - 完全なスクリプトサポート(
ECMAScript Mobile Profile

Version 1.2 - Forms と Object のサポートを追加

サポートモジュール

XHTML MP 1.2 のサポートするモジュールは以下の通り。

Structure

Texts

Hypertext

List

Forms

Basic Tables

Image

Object

Metainformation

Scripting

Style Sheet

Style Attribute

Link

Base

XHTML-MP 1.2 は、以下を部分的にサポートしている。

Presentation

Intrinsic Events

Legacy

version 1.2 には、OMA独自モジュール ("Text Input Modes") も含まれており、携帯電話での各種入力モードを扱っている。
開発時の注意点

XHTMLで書かれたコンテンツを様々な機器で表示させようとすると、多くの問題が生じる。例えばCSSで指定された色を守るものもあれば、そうでない機器もあり、テーブルを正しく描画できるものもあれば、そうでないものもある。適応型アプリケーションの構築とは、機器の持つ機能によってコンテンツを変えることを意味する。しかし、市場には様々なハードウェア(画面サイズ、色機能、ボタン、メモリ、性能)とウェブブラウザがあり、これらを考慮することは大変な複雑さとなる。携帯機器でのブラウザの更新はデスクトップのブラウザほど容易なものではないので、問題のあるブラウザでもその携帯機器が廃棄されるまで使われ続けることになる。

様々な団体がこの問題への対策を提案している。その多くはWAPコンテンツを書く独自言語を提供し、機器に対応して様々なコンテンツ(XHTML MP、WMLCHTMLなど)を渡すというものである。FLOSSコミュニティでの関連標準としてWURFLがある。これは階層型XML設定ファイルを使って数百のデバイス機能をマッピングし、マークアップをその機器がサポートするものに変換する "Wireless Abstraction Layer" (WALL) も設けたものである。W3C Device Description Working Group (DDWG) は、機器の機能情報のリポジトリへのアクセスをコンテンツ適応技術のフレームワークの一部として標準化する仕様を作成している。

完全に妥当かつ整形式の例を以下に示す。<?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>


次ページ
記事の検索
おまかせリスト
▼オプションを表示
ブックマーク登録
mixiチェック!
Twitterに投稿
オプション/リンク一覧
話題のニュース
列車運行情報
暇つぶしWikipedia

Size:14 KB
出典: フリー百科事典『ウィキペディア(Wikipedia)
担当:undef