XSLT StyleSheet XML

File: Data.xml



 100
 1000
 10000
 100000
 1000000
 10000000
 100000000
 1000000000

File: Transform.xslt

  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
      grouping-separator="." />
      grouping-separator=" " />
      grouping-separator=" " />
      grouping-separator="," />
      grouping-separator="," />
  
    
      
        Number Formatter
        
          table {margin-left:auto;margin-right:auto} td
          {text-align:right;padding: 5px 5px 5px 5px} h3
          {text-align:center}
        
      
      
        

Number Formatter


        
          
            
              Deutschland
              France
              
                Россия
              
              United Kingdom
              United States
            
          
          
            
          
        
      
    
  
  
    
      
                  select="format-number(.,'.###,00€','de')" />
      
      
                  select="format-number(.,' ###,00€','fr')" />
      
      
                  select="format-number(.,' ###,00p.','ru')" />
      
      
                  select="format-number(.,'£,###.00','uk')" />
      
      
                  select="format-number(.,'$,###.00','us')" />
      
    
  

Output:

   
      
      Number Formatter
          table {margin-left:auto;margin-right:auto} td
          {text-align:right;padding: 5px 5px 5px 5px} h3
          {text-align:center}
        
   
      

Number Formatter


      
         
            
               Deutschland
               France
               
                                  ??????
                                
               
               United Kingdom
               United States
            
         
         
            
               100,00€
               100,00€
               100,00p.
               £100.00
               $100.00
            
            
               1.000,00€
               1 000,00€
               1 000,00p.
               £1,000.00
               $1,000.00
            
            
               10.000,00€
               10 000,00€
               10 000,00p.
               £10,000.00
               $10,000.00
            
            
               100.000,00€
               100 000,00€
               100 000,00p.
               £100,000.00
               $100,000.00
            
            
               1.000.000,00€
               1 000 000,00€
               1 000 000,00p.
               £1,000,000.00
               $1,000,000.00
            
            
               10.000.000,00€
               10 000 000,00€
               10 000 000,00p.
               £10,000,000.00
               $10,000,000.00
            
            
               100.000.000,00€
               100 000 000,00€
               100 000 000,00p.
               £100,000,000.00
               $100,000,000.00
            
            
               1.000.000.000,00€
               1 000 000 000,00€
               1 000 000 000,00p.
               £1,000,000,000.00
               $1,000,000,000.00