以文本方式查看主题 - 计算机科学论坛 (http://bbs.xml.org.cn/index.asp) -- 『 XML源码及示例(仅原创和转载) 』 (http://bbs.xml.org.cn/list.asp?boardid=32) ---- 求助:xsl中如何将2个字符串变量合成1个变量 (http://bbs.xml.org.cn/dispbbs.asp?boardid=32&rootid=&id=8792) |
-- 作者:oydj -- 发布时间:7/14/2004 2:57:00 PM -- 求助:xsl中如何将2个字符串变量合成1个变量 <xsl:variable name="path1" select="BID/DIRID" /> <xsl:variable name="path2" select="'../'" /> 我想将path1和 path2 合并为一个变量,该怎么做? |
-- 作者:diegor -- 发布时间:7/20/2004 5:03:00 PM -- <xsl:variable name="bookCount" select="count(//book)"/> <xsl:variable name="bookTotal" select="sum(//book/price)"/> <xsl:variable name="bookAverage" select="$bookTotal div $bookCount"/> 我只知道div,至于字符串的连接俺不知道哦 |
-- 作者:孤独 -- 发布时间:7/20/2004 8:07:00 PM -- <xsl:variable name="path1" select="BID/DIRID" /> <xsl:variable name="path2" select="'../'" /> <xsl:variable name="path3" select="concat($path1,$path2)" /> concat() Returns the concatenation of all its arguments string=concat(val1, val2, ..) Example: concat('The',' ','XML') Result: 'The XML' |
-- 作者:diegor -- 发布时间:7/23/2004 10:33:00 AM -- 还是你高!俺都没用过,原来可以用js的东西!呵呵!
|
-- 作者:孤独 -- 发布时间:7/26/2004 4:43:00 PM -- 不是js的说呢,是xslt的函数呢 |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
46.875ms |