日期:2014-05-18  浏览次数:20713 次

xsl中if判断怎么用阿
能不能给各例子阿   大家   请帮忙啊

------解决方案--------------------
是choose when otherwise这些标签
没有if的
<xsl:choose>
<xsl:when test= "quantity[@error= 'true '] ">
<td bgcolor= "#ffffff "> <img height= "1 " width= "1 " src= "http://img.sparks.com/images/i-catalog/sparks_images/sparks_ui/clearpixel.gif "/> </td>
<td valign= "top " bgcolor= "#ffffff " colspan= "2 "> <font face= "verdana, arial " size= "1 " color= "#cc3300 "> <b> *not enough in stock. your quantity was adjusted accordingly. </b> </font> </td>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>