我有一个问题,我需要匹配xsl中的两个参数choose clause,有没有办法实现这个?XSLT - xsl选择
例如:xsl:when test =我需要检查两个参数,然后我可以检查 相同的价格,但没有降低ordertype。
<xsl:choose>
<xsl:when test="price = 10" && "OrderType='P' ">
<td bgcolor="#ff00ff">
<xsl:value-of select="artist"/></td>
</xsl:when>
<xsl:when test="price = 10">
<td bgcolor="#cccccc">
<xsl:value-of select="artist"/></td>
</xsl:when>
<xsl:otherwise>
<td><xsl:value-of select="artist"/></td>
</xsl:otherwise>
</xsl:choose>
那么这很容易:)谢谢。 – AxV
我也可能会建议您应该在选择之外编写TD和Value-of语句。在现实中,你有一个选择是选择颜色。该选择应该位于xsl:属性内。 –