以文本方式查看主题 - 计算机科学论坛 (http://bbs.xml.org.cn/index.asp) -- 『 XSL/XSLT/XSL-FO/CSS 』 (http://bbs.xml.org.cn/list.asp?boardid=8) ---- 求助(xslt if test)用法 (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=52142) |
-- 作者:asd_1948 -- 发布时间:9/3/2007 8:17:00 PM -- 求助(xslt if test)用法 代码拿出来:<input type="hidden" name="$root$application"> <xsl:attribute name="value"> <xsl:value-of select="root/application"/> </xsl:attribute> </input> <input type="checkbox" name="root/application1" > <xsl:if test="root/application='?'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if></input> 怎么判断root/application和root/application1的值是否相等
|
-- 作者:Qr -- 发布时间:9/4/2007 10:46:00 AM -- $root$application这样用能行吗,要用"{}"括起来吧 <xsl:if test="root/application=root/application1">,要注意路径正确与否 |
-- 作者:fifastar -- 发布时间:9/5/2007 5:50:00 PM -- 版主说的对哦,$变量用{},否则就是 <xsl:if test="root/xxx=root/xxxa"> |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
78.125ms |