Xpath XML Tutorial

Axis attribute:: can be abbreviatet to @ 
. is short for self:: 
File: Data.xml


    
      
      
    
    
      
      
      
        
      
      
        
      
    

File: Transform.xslt

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


        
        
        
      


      
        
          full
          abbreviated
        
        
          
            child::BBB/attribute::id
          
          
            BBB/@id
          
        
        
          
            
          
          
            
          
        
      
    


    

AAAa1

fullabbreviatedchild::BBB/attribute::idBBB/@idb1b1
    

AAAa2

fullabbreviatedchild::BBB/attribute::idBBB/@idb3b3