How to filt some items when transform xml to html with xslt?
-
Hi guys, I create a xml file like this by program: <condition>disp='1'</conditions> <item> <disp> 1 </disp> <otheritem> f</otheritem> <item> <item> <disp> 2 </disp> <otheritem> w</otheritem> <item> <item> <disp> 3 </disp> <otheritem> w</otheritem> <item> I use xslt to transform this xml file to html. But I don't want to show some items, such as, when disp='1', I don't want to show it to users. In here, the condition is variational. Maybe it's disp!='4', maybe it's otheritem = '53g'. when I show the items with xslt, how to filt these items? I try to add the condition to the xml file, and get it in the xslt. But it can't work normally. Can anyone give me any suggestions? Thanks & regards.
========================================= Make friends with you all. My Blog, welcome
???????,????????