📜  XPth通配符

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

XPath通配符

与XPath表达式一起使用的XPath通配符列表。

Index Wildcard Expression
1) * It is used to match any node.
2) . It is used to match the current node in context.
3) @* It is used to match any attribute.
4) node() It is used to match node of any type.

XPath通配符示例

让我们以一个示例为例,通过遍历每个员工来创建一个元素及其详细信息的表。

Employee.xml




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

员工.xsl



   xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">    
    
       
          
             

Employee



First Name:
Last Name:
Nick Name:
Salary:

输出: