例如<item   a=""></item> 我想给属性a赋值为"123",如何做

解决方案 »

  1.   

    我的例子:下面是给个a超链接的属性href和style分别赋值 <td>
          <a>
            <xsl:attribute name="href">
              zhaoshangDetail.aspx?category=<xsl:value-of select="Category"/>&amp;infoid=<xsl:value-of select="InfoId"/>
            </xsl:attribute>
            <xsl:attribute name="style">
              color: #F97705; font-size: 14px
            </xsl:attribute>
            <xsl:value-of select="Title"/>
          </a>  
        </td>