XSLT StyleSheet XML Tutorial

File: Data.xml


  

    
      Mr.
      Doris
      Smith
    

    1234 Main Street
    Sheboygan
    WI
    48392
  


File: Transform.xslt

  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  
  
    
      
        Customers grouped by Zip code
      
      
        
          
             
            
              
              
              
                
                  
                    Zip code 
                    
                    
                      
                    
                    
                    
                    
                    
                  
                
                
                  
                   
                  
                    
                  

                
                
                  
                
              
            
          
        
      
    
  

Output:

   
      
      Customers grouped by Zip code
   
   
      
         
            Zip code 
48392
Sheboygan, WI
            
            Doris Smith
            1234 Main Street