首页 > 其他 > 详细

xsl:for-each中引用循环外全局变量

时间:2015-12-17 12:15:32      阅读:595      评论:0      收藏:0      [点我收藏+]


<xsl:variable name="temp_driving_type" select="WebPage/Data/OptReturnData[@OptRetName=‘GetEmpCarById‘]/OptRetData/NewDataSet/Table/driving_type"/>
<select class="Input" name="driving_type" id="driving_type">
<xsl:for-each select="WebPage/Data/OptReturnData[@OptRetName=‘GetEmpCarTypeNames‘]/OptRetData/NewDataSet/Table">
<xsl:choose>
<xsl:when test="contains($temp_driving_type,id)">
<option value="{id}" selected ="selected">
<xsl:value-of select="name"/>
</option>
</xsl:when>
<xsl:otherwise>
<option value="{id}">
<xsl:value-of select="name"/>
</option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>

xsl:for-each中引用循环外全局变量

原文:http://www.cnblogs.com/whoyou/p/5053389.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!