📜  XSLT元素

📅  最后修改于: 2020-12-26 06:49:28             🧑  作者: Mango

XSLT元件

XSLT 元素用于告诉XSLT处理器根据每个选定节点的类型和上下文找到要应用的适当模板。


 

参数说明

Index Name Description
1) select It is used to process nodes selected by XPath expressions from the list of all nodes and its children.
2) mode It is used to allow an element as specified by its qualified names to be processed multiple times, each time producing a different result.

XSLT元素示例

让我们以一个示例为例,通过遍历每个员工来创建具有其属性“ id”及其子元素“ ”,“ ”,“ ”和“ ”的元素列表。

Employee.xml


 
 
   
      Aryan 
      Gupta 
      Raju 
      30000
    
    
      Sara 
      Khan 
      Zoya 
      25000
    
    
      Peter 
      Symon 
      John 
      10000 
    

员工.xsl

 
   
    
       
          
            

Employees



First Name:
Last Name:
<
Nick Name:
Marks:

输出: