+ -
当前位置:首页 → 问答吧 →  <xsl:for-each>是否存在的问题

<xsl:for-each>是否存在的问题

时间:2011-06-29

来源:互联网

1.xml
<users>
<user>
<id>1</id>
<userLogName>t1</userLogName>
<type>1</type>
<user>
<user>
<id>2</id>
<userLogName>t2</userLogName>
<type>2</type>
<user>
</users> 

xsl中有一句是这样的
<xsl:for-each select="user[type='3']">
 </xsl:for-each>

很明显,现在type=3是不存在的,有没有办法实现当不存在的时候显示
暂时没有数据。



作者: X1656732236   发布时间: 2011-06-29

自己顶

作者: X1656732236   发布时间: 2011-06-29