2006年02月09日

XML リンク ( スクリプト無し )

貼り付け
<IFRAME
	src="http://homepage2.nifty.com/lightbox/link.xml"
	frameborder="no"
	scrolling="no"
	width="180"
	height="100"
>
</IFRAME>
link.xml
<?xml version="1.0" encoding="shift_jis" ?>
<?xml-stylesheet type="text/xsl" href="link.xsl" ?>
<mydata>
	<row>
		<entry>
			<url>http://hp.vector.co.jp/authors/VA003334/</url>
			<title>SQLの窓</title>
		</entry>
		<entry>
			<url>http://bonurd.winofsql.jp/sb/</url>
			<title>Bonurd Laboratory</title>
		</entry>
		<entry>
			<url>http://argus.sblo.jp/</url>
			<title>ARGUS OB NURD</title>
		</entry>
	</row>
</mydata>
link.xsl
<?xml version="1.0" encoding="shift_jis" ?>
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />

<xsl:template match="/">
<HTML>
<HEAD>
<LINK
	rel="stylesheet"
	type="text/css"
	href="style.css" />
</HEAD>

<TABLE cellspacing="2" cellpadding="3" bgcolor="white">
     <TR>
        <TD valign="top">

        <xsl:for-each select="mydata/row/entry">
            <LI><A class="side" target="_blank">
                <xsl:attribute name="HREF">
                    <xsl:value-of select="url" />
                </xsl:attribute>
                <xsl:value-of select="title" />
                </A>
            </LI>
        </xsl:for-each>

        </TD>

    </TR>
</TABLE>

</HTML>
</xsl:template>

</xsl:stylesheet>
style.css
.side {
	font-family:"MS Pゴシック",verdana;
	font-size: 12px;
}

a:link,
a:hover,
a:active,
a:visited {
	color: #4A525A;
}

Trackback on "XML リンク ( スクリプト無し )"

このエントリーのトラックバックURL: 

"XML リンク ( スクリプト無し )"へのトラックバックはまだありません。