XSLT – very useful prepend-pad and append-pad

15 Mar

Found over: here

This is very useful to make sure things appear in the correct ‘column’.

Basically so you can make sure each value has been padded out with spaces (or whatever).

To use:

 
    
      
      
      
    
  

The actual templates that do the work:



  
     
    
    
    
    
    
      
        
          
          
          
          
        
      
      
        
<!--      
-->
      
    
  


  
     
    
    
    
      
        
          
          
          
        
      
      
        
      
    
  

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: