ログインしてさらにmixiを楽しもう

コメントを投稿して情報交換!
更新通知を受け取って、最新情報をゲット!

楽天ウェブサービスベータコミュのサンプルxsl

  • mixiチェック
  • このエントリーをはてなブックマークに追加
私の使っているxslを公開します。
サンプルに利用してください^^

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<xsl:apply-templates select="Response/Body/ItemSearch/Items/Item" />
</xsl:template>


<xsl:template match="Item">

<table width="100%" border="0">
<tr>
<td width="100">
<a>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="affiliateUrl" />
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<img>
<xsl:attribute name="src">
<xsl:value-of select="smallImageUrl" />
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</img>
</a>
</td>
<td>
<a>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="affiliateUrl" />
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:value-of select="itemName"/>
<br />
</a>
<xsl:value-of select="shopName" /> 
<br />
<font size="3">価格 <xsl:value-of select="itemPrice" />円</font>
</td>
</tr>
</table>

<hr />

</xsl:template>

</xsl:stylesheet>


コメント(0)

mixiユーザー
ログインしてコメントしよう!

楽天ウェブサービスベータ 更新情報

楽天ウェブサービスベータのメンバーはこんなコミュニティにも参加しています

星印の数は、共通して参加しているメンバーが多いほど増えます。