ELIXIR MOBILE GATEWAY EXTREMEのマークアップ言語の変換仕様です。
| iモード対応 "XHTML" の変換ルール | |||||||
|---|---|---|---|---|---|---|---|
| tag | style | 対象 キャリア |
変換ルール | 変換例 | |||
| docomo | au | soft bank |
変換前 | 変換後 | |||
| !DOCTYPE | - | ○ | - | DOCTYPE宣言の変換 | <!DOCTYPE html PUBLIC "-//i-mode group (ja)//DTD XHTML i-XHTML(Locale/Ver.=ja/2.3) 1.0//EN" "i-xhtml_4ja_10.dtd"> | <!DOCTYPE html PUBLIC "-//OPENWAVE//DTD XHTML 1.0//EN" "http://www.openwave.com/DTD/xhtml-basic.dtd"> | |
| - | - | ○ | DOCTYPE宣言の変換 | <!DOCTYPE html PUBLIC "-//i-mode group (ja)//DTD XHTML i-XHTML(Locale/Ver.=ja/2.3) 1.0//EN" "i-xhtml_4ja_10.dtd"> | <!DOCTYPE html PUBLIC "-//J-PHONE//DTD XHTML Basic 1.0 Plus//EN" "xhtml-basic10-plus.dtd"> | ||
| ?xml | - | ○ | ○ | 変換対象端末の文字コードへ xml宣言の文字コードを変換 |
<?xml version="1.0" encoding="UTF-8"?> | 対象端末の対応文字コードが Shift_JISの場合: <?xml version="1.0" encoding="Shift_JIS"?> |
|
| blockquote | clear | - | ○ | - | style="clear:AAA"を削除 | <blockquote style="clear:both"> | <blockquote> |
| div | clear | - | ○ | - | style="clear:AAA"を削除 | <div style="clear:left"> | <div> |
| -wap-marquee | - | ○ | - | style="display:-wap-marquee; -wap-marquee-dir:rtl; -wap-marquee-loop:infinite; -wap-marquee-style:scroll;"を追加。 (但し、-wap-marquee-dir,-wap-marquee-loop,-wap-marquee-styleの値が記述されている場合その記述に従う) 0以下の値が指定された場合はinfiniteに変換する。 |
<div style="display:-wap-marquee; -wap-marquee-loop:0; -wap-marquee-style:slide;"> | <div style="display:-wap-marquee; -wap-marquee-loop:infinite; -wap-marquee-style:slide; -wap-marquee-dir:rtl;"> | |
| dl | clear | - | ○ | - | style="clear:AAA"を削除 | <dl style="clear:both"> | <dl> |
| form | clear | - | ○ | - | style="clear:AAA"を削除 | <form style="clear:both"> | <form> |
| h1 | clear | - | ○ | - | style="clear:AAA"を削除 | <h1 style="clear:both"> | <h1> |
| h2 | clear | - | ○ | - | style="clear:AAA"を削除 | <h2 style="clear:both"> | <h2> |
| h3 | clear | - | ○ | - | style="clear:AAA"を削除 | <h3 style="clear:both"> | <h3> |
| h4 | clear | - | ○ | - | style="clear:AAA"を削除 | <h4 style="clear:both"> | <h4> |
| h5 | clear | - | ○ | - | style="clear:AAA"を削除 | <h5 style="clear:both"> | <h5> |
| h6 | clear | - | ○ | - | style="clear:AAA"を削除 | <h6 style="clear:both"> | <h6> |
| hr | background-color | - | ○ | - | style="background-color:AAA" を削除 | <hr style="background-color:red"/> | <hr /> |
| - | - | ○ | style="background-color:ABC" を color="ABC" へ変換 | <hr style="background-color:red"/> | <hr color="red" /> | ||
| border-color | - | ○ | - | style="border-color:BBB" を color="BBB" へ変換 | <hr style="border-color:black"/> | <hr color="black" /> | |
| border-style | - | ○ | - | style="border-style:CCC" を削除 | <hr style="border-style:solid"/> | <hr /> | |
| clear | - | ○ | - | style="clear:DDD" を削除 | <hr style="clear:both"/> | <hr /> | |
| float | - | ○ | - | style="float:EEE" を削除 | <hr style="float:none"/> | <hr /> | |
| - | - | ○ | style="float:ABC" を align="ABC" へ変換 (但し、"ABC" が "none" の場合 "center"に変換する) |
<hr style="float:none"/> | <hr align="center"/> | ||
| height | - | ○ | - | style="height:FFF" を size="FFF" へ変換 | <hr style="height:100"/> | <hr size="100"/> | |
| html | - | ○ | ○ | ||||
| img | float | - | ○ | - | style="float:ABC" を align="ABC" へ変換 (但し、"ABC" が "none" の場合 "center"に変換する) |
<img style="float:none"> | <img align="center"> |
| input | -wap-input-format | - | ○ | ○ | style="-wap-input-format:"*<ja:[AA]>""を istyle="1 | 2 | 3 | 4"へ変換 * [AA] = h の場合 istyle="1" (全角かな) = hk の場合 istyle="2" (半角カナ) = en の場合 istyle="3" (半角英) = n の場合 istyle="4" (半角数) |
<form><input style="-wap-input-format:"*<ja:h>""/></form> | <form><input istyle="1"/></form> |
| meta | content | - | ○ | ○ | content="application/xhtml+xml"をcontent="text/html"に変換 | <meta content=application/xhtml+xml;"/> | <meta content=text/html;"/> |
| ol | clear | - | ○ | - | style="clear:AAA"を削除 | <ol style="clear:both"> | <ol> |
| p | clear | - | ○ | - | style="clear:AAA"を削除 | <p style="clear:both"> | <p> |
| pre | clear | - | ○ | - | style="clear:AAA"を削除 | <pre style="clear:both"> | <pre> |
| span | clear | - | ○ | - | style="clear:AAA"を削除 | <span style="clear:left"> | <span> |
| -wap-marquee | - | ○ | ○ | style="display:-wap-marquee; -wap-marquee-dir:rtl; -wap-marquee-loop:infinite; -wap-marquee-style:scroll;" を追加。 (但し、 -wap-marquee-dir,-wap-marquee-loop,-wap-marquee-styleの値が記述されている場合その記述に従う) 0以下の値が指定された場合はinfiniteに変換する。 |
<span style="display:-wap-marquee; -wap-marquee-loop:0; -wap-marquee-style:slide;"> | <span style="display:-wap-marquee; -wap-marquee-loop:infinite; -wap-marquee-style:slide; -wap-marquee-dir:rtl;"> | |
| table | height | - | ○ | - | style="height:FFF" を削除 | <table style="height:100px"> | <table> |
| td | height | - | ○ | - | style="height:FFF" を削除 | <td style="height:100px"> | <td> |
| textarea | -wap-input-format | - | ○ | ○ | style="-wap-input-format:"*<ja:[AA]>""を istyle="1 | 2 | 3 | 4"へ変換 * [AA] = h の場合 istyle="1" (全角かな) = hk の場合 istyle="2" (半角カナ) = en の場合 istyle="3" (半角英) = n の場合 istyle="4" (半角数) |
<form><input style="-wap-input-format:"*<ja:h>""/></form> | <form><input istyle="1"/></form> |
| ul | clear | - | ○ | - | style="clear:AAA"を削除 | <ul style="clear:both"> | <ul> |