This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 是XSL不好用还是我太苯?请教一个XSL问题以下是我的xml:
<entry>111</entry>
<entry b="1">222</entry>
<entry href="google">333</entry>
<entry href="yahoo" b="1">444</entry>
<entry></entry>
要显示在html的table里面:
111 -> 正常
222 -> 黑体<b>222</b>
333 -> 链接<a href="google">333</a>
444 -> 黑体并链接<a href="yahoo"><b>333</b></a>
最后一项显示"NA"
好象choose-when-otherwise里面不能再嵌套if之类的语句了。
请各位高手牛人给个提示,谢谢。
-xanada(㊣流水);
2003-1-24
{426}
(#996957@0)
-
you can use several "when"s and you may also need use more filter operators as well in your boolean expression.
-yuanzidan(原子弹);
2003-1-24
(#997097@0)
-
when不能嵌套?我比较蠢,能否给点详细提示?
-xanada(㊣流水);
2003-1-24
(#997102@0)
-
Hope this helps:http://www.w3schools.com/xsl/xsl_choose.asp
-yuanzidan(原子弹);
2003-1-24
{43}
(#997177@0)
-
Thanks, but it can not solve my problem.
-xanada(㊣流水);
2003-1-24
(#997190@0)
-
Why not? if you still cant get it, reply this message and i will post the code
-yuanzidan(原子弹);
2003-1-24
(#997397@0)
-
Thanks, please see my code:
-xanada(㊣流水);
2003-1-24
{819}
(#997433@0)
-
To be honest, i just start learning XSL from this morning after seeing your post,
-yuanzidan(原子弹);
2003-1-24
{2008}
(#997518@0)
-
I have just added a small patch for "N/A" staff, please check.
-yuanzidan(原子弹);
2003-1-24
(#997548@0)
-
原子弹同志确实是个好同志啊,谢谢。
-xanada(㊣流水);
2003-1-24
(#997611@0)
-
我其实也想帮你想来着, 因为 1.今天挺忙 2.XSLT确实别扭 3.看你总夸别人是好同志 所以我就没管你... :-P
-decentboy(曾经的帝国骑士);
2003-1-24
(#997619@0)
-
你的MCAD考了吗?
-luoboyang(萝卜秧);
2003-1-24
(#997630@0)
-
谢谢你还替我惦记着呢 :-) 最近比较颓废, 去年借口说到今年再考, 现在想过了春节再说, 后来发现还有情人节, 某些纪念日什么的....还是等冬天没什么事儿的时候再说吧.. :-P
-decentboy(曾经的帝国骑士);
2003-1-24
(#997636@0)
-
我过了2门了。。。:)
-luoboyang(萝卜秧);
2003-1-24
(#997647@0)
-
@@ Wb Form, Windows Form, Web Service? 哪两门? 萝卜秧你看的是什么书呀, 借我看看吧, 有什么考题吗? 以请你吃饭. 如果这个忙都不肯帮, 实在太不够意思了吧!! 嘿嘿, 你说咱们什么时候见面呢? :-P
-decentboy(曾经的帝国骑士);
2003-1-24
(#997655@0)
-
这东西用起来是太别扭。//我夸别人你就不理我,争宠?爱卿平身~~~~
-xanada(㊣流水);
2003-1-24
(#997643@0)
-
嘿嘿...行, 下次我"热心"地把你往歪路上引你可别怪我....
-decentboy(曾经的帝国骑士);
2003-1-24
(#997649@0)
-
孤不怪你
-xanada(㊣流水);
2003-1-24
(#997652@0)
-
Thank you so much!
-xanada(㊣流水);
2003-1-24
{799}
(#997568@0)