• XSLT note 6 - fast search node

    We can make search much faster if we generate index. We generate index by using xsl:key.

  • XSLT note 5 - Cross tab transformation

    
    
    
    
      
        1
        Meal
        Breakfast
        
      
      
        1
        Meal
        Dinner
        lots of stuff
      
      
        1
        Tour
        Great wall
        
      
      
        2
        Meal
        Breakfast
        
      
      
        2
        Airport
        Transfer to hotel
        
      
      
        3
        Airport
        Transfer to airport
        
      
      
        3
        Meeting
        Face to face meeting
        
      
    
    
    
  • XSLT note 3 - attribute tricks

    When you want to output the value of node to destination, you can use . This works only when the destination is not in side of an attribute. If the output is in side of an attribute, you need to use {}. For example.

  • XSLT note 3 - variable

    You can basically build a variable just as building any output. The simple way is

  • XSLT note 2 - copy template

    Here is a template that copy original xml file.