[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 2chのread.cgiへ]
Update time : 05/24 12:47 / Filesize : 157 KB / Number-of Response : 709
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

フリーCMSツールについて語るスレ2



685 名前:nobodyさん mailto:sage [2010/02/01(月) 06:32:45 ID:???]
>>684のスレの768が書いてるけど、XSLTって手も確かにあるね。
ざっと書くと、以下 test.xsl の内容

<xsl:stylesheet version="1.0" xmlns:xsl="www.w3.org/1999/XSL/Transform" xmlns="www.w3.org/1999/xhtml">
<xsl:output encoding="utf-8" method="html" version="1.0" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" media-type="text/html" />

<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="/root/@title" /></title>
</head>
<body>
<div style="margin-right: auto; margin-left: auto; width: 100%;">
<xsl:apply-templates select="/root/header" />
<div style="width: 100%; ">
<xsl:apply-templates select="/root/content" />
<xsl:apply-templates select="/root/category" />
</div>
<xsl:apply-templates select="/root/footer" />
</div>
</body>
</html>
</xsl:template>

<xsl:template match="header"> <div><xsl:copy-of select="node()" /></div></xsl:template>

<xsl:template match="content"> <div style="float: left; width: 69%;"><xsl:copy-of select="node()" /></div></xsl:template>

<xsl:template match="category"> <div style="float: right; width: 29%"><xsl:copy-of select="node()" /></div> </xsl:template>

<xsl:template match="footer"><xsl:copy-of select="node()" /></xsl:template>
</xsl:stylesheet>






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<157KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef