title: XSLT format-number with comma
body: <p>I'm trying to format this and other elements alike, so it would look like this 2,590:</p>
  
  <pre><code>&lt;Add_Amount&gt;2,59&lt;/Add_Amount&gt;
  </code></pre>
  
  <p>Doing it like this:</p>
  
  <pre><code>&lt;xsl:decimal-format name="dkk" decimal-separator="," grouping-separator="."/&gt;
  </code></pre>
  
  <p>....</p>
  
  <pre><code>    &lt;xsl:value-of select="translate(format-number(Add_Amount, '#.###,000', 'dkk'), ',', '.')" /&gt;
  </code></pre>
  
  <p>And the output comes out NaN. 
  Any help is greatly appreciated.</p>
  
  <p>Thanks.</p>
  
  <p>//Daniel</p>