📜  XPath布尔运算符

📅  最后修改于: 2020-12-26 07:01:08             🧑  作者: Mango

XPath布尔运算符

XPath表达式中使用的布尔运算符列表。

Index Operator Description
1) and It specifies that both conditions must be satisfied.
2) or It specifies that any one of the condition must be satisfied.
3) not() It specifies function to check condition not to be satisfied.

XPath布尔运算符示例

让我们以一个示例来创建一个表元素,其属性ID及其子元素。在此示例中,它检查id为001或003,然后打印详细信息。

Employee.xml




   
      Abhiram
      Kushwaha
      Manoj
      15000
   
   
      Akash
      Singh
      Bunty
      25000
   
    
      Brijesh
      Kaushik
      Ballu
      20000
   
    
      Zoya
      Mansoori
      Sonam
      30000
   

员工.xsl


  
   
      
         
            

Employee

ID First Name Last Name Nick Name Salary

输出: