当前位置: 代码迷 >> Java Web开发 >> xsl中if判断如何用阿
  详细解决方案

xsl中if判断如何用阿

热度:9   发布时间:2016-04-17 15:46:23.0
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>


  相关解决方案