Xpath XML Tutorial

File: Data.xml


    
      
      
    
    
      
      
      
        
      
      
        
      
    
  
File: Transform.xslt

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


        
        
        
      


      
        
          full
          abbreviated
        
        
          
            name(/descendant-or-self::*)
          
          
            name(//*)
          
        
        
          
            
          
          
            
          
        
      
      
    
  
Output:

    
      
    
      
      

CCCc1

fullabbreviatedname(/descendant-or-self::*)name(//*)datadata
        

CCCc2

fullabbreviatedname(/descendant-or-self::*)name(//*)datadata
      
        

CCCc3

fullabbreviatedname(/descendant-or-self::*)name(//*)datadata