1. 循环

    <xsl:for-each select="catalog/cd">
1
</xsl:for-each>

2. 定义变量赋值使用

      <xsl:variable name="myvariable" select="title"/>
<xsl:value-of select="$myvariable" />

3.  if判断

      <xsl:if test = "1 &lt; 2">
1
</xsl:if>

4.  为元素设置属性()

<myelement>
<xsl:attribute name="myattribute">1</xsl:attribute>
</myelement>
05-11 22:58