コンテンツとデザインの分離at PHP
コンテンツとデザインの分離 - 暇つぶし2ch492:316
02/10/22 13:56
同じURLで、複数のUser-Agentごとに見た目を変更するのも簡単だ。

<map:pipeline>
<map:match pattern="hello">
<map:generate src="hello.xml"/>
<map:select type="browser">
<map:when test="imode">
<map:transform src="hello_imode.xsl"/>
</map:when>
<map:otherwise>
<map:transform src="hello.xsl"/>
</map:otherwise>
</map:select>
<map:serialize type="html"/>
</map:match>
</map:pipeline>

このように、ブラウザセレクタを使って、適用するXSLTを変更することが出来る。
だからもう、URLリンク(i.)~~やら、http://~~/iなどとして、分離する必要はない。


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch