XSLT StyleSheet XML

File: Data.xml



  Employee Data File
  
    
      
        Joe
        Brian
        Smith
      

      

        1 Drive
        Vancouver
        BC
        80210
      

      
        111-1111111
        222-222222
        303-4667357
      

      a@a.com
    
    2008-10-29
  

File: Transform.xslt
  version="1.0">
  
    
      
        Employee Email List
      
      
        
          
            
            
          
          
                          select="employee[@dept='programming']">
              

              
            
          
        
Number
                              select="employee/contact/phone/tel/attribute::type" />
            

                
              

                                  select="contact/phone/tel[2]" />
              

      
    
  

Output:

  Employee Data File
  
    
      
        Joe
        Brian
        Smith
      
      
        1 Drive
        Vancouver
        BC
        80210
      
      
        111-1111111
        222-222222
        303-4667357
      
      a@a.com
    
    2008-10-29