注册 登录
编程论坛 ASP.NET技术论坛

xsl:if 中的test里的条件是两条时什么写

yueyazhimeng 发布于 2007-01-18 13:32, 2044 次点击
xsl:if 中的test里的条件是两条时什么写,意思就例如:当x>10且y>20时,执行,在 xslt中如何写
<xsl:if test="这里怎么写">
5 回复
#2
人妖1232007-01-19 00:10
if(x&gt;10||y&gt;20)
#3
zjhm2007-01-24 15:50
if(x>10&& y>20)并
if(x>10||y>20)或
#4
microbe2007-01-24 16:20
且应该是用&amp;&amp;
#5
yueyazhimeng2007-01-25 17:56
我是说在xslt文件中,他的格式是&lt;xsl:if test="这里怎么写"&gt;,上面的都不行的
#6
sitonmoon2013-01-24 16:43
多条件用and隔开<xsl:if test="$DivWidth>0 and $ColumnsCount>0">
或者or<xsl:if test="$type='imgwords' or $type='imgwodcontent' or $type='imgwodcontent2'">
1