search a xml using 2 parameter values using java faces



i need to create a web app using java faces which takes input data string and radio button selection value to search a XML file. Using XSLT im trying to achieve this. Can some one please give main logic that will be used in xslt . data to be searched title,choice- these values passed from bean.choice is a radio button value with option title,author,price. 1)is there any better way to put this logic either by using 2 nested choose or by using for-each instead of using single choose with combined test condition in when. 2. can i combine 2 test conditions like this test = "$choice='1' and count(book[title=$title])>0


No comments:

Post a Comment