xsl判断中赋值,判断外取值?
xml吧
全部回复
仅看楼主
level 1
s2608777 楼主
<xsl:if test="@id = 'name'">
<xsl:value-of disable-output-escaping="yes" select="@value"/>
<xsl:variable name="caption" select="@value"/>
</xsl:if>
<a href="http://localhost/index_1.shtml?mapservice=highlight&caption={$caption}">查看地图>></a>
如果在判断中直接取值是没问题的,外面的话就有错。
2014年05月27日 06点05分 1
1