Less than, greater than, equal to not working as expected in XPath
问题 this is my xml file:- <products> <product_id value="1"> <tab_id value="351"> <tab_name value="test1"/> <dist_map value="5"/> </tab_id> </product_id> <product_id value="2"> <tab_id value="352"> <tab_name value="test2"/> <dist_map value="3"/> </tab_id> </product_id> </products> this is my xpath:- var xPath = '//*[local-name() = "'+elName+'" and '+value+' and '+ value +' '+ls +' contains(concat(@value,","),"'+value+',")and '+ ' translate(@value," -:","")]'+'/../../@value'; i have three buttons