引用地址http://www.blogdriver.com/cfml/464862.html      

很简单看一下以下代码就知道了~~~~~!

<xsl:template match="节点" >
<xsl:for-each select="要循环的节点"  >

链接:
<xsl:element name="a">
<xsl:attribute name="href">
/index.cfml?id=<xsl:value-of select="id"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:value-of select="httptext"/>
</xsl:element>

图片:
<xsl:element name="img">
<xsl:attribute name="src><xsl:value-of select="imgPath"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute>
</xsl:element>

</xsl:for-each>
</xsl:template>