title: Formatting negative values in XSLT
body: <p>I'm trying to get the correct negative value format displayed:</p>
  
  <p>Right now it is showing (19%), when I want to show it as -19%.</p>
  
  <p>I've got an XML file with </p>
  
  <p><code>&lt;PerChg&gt;-0.190&lt;/PerChg&gt;</code></p>
  
  <p>Formatting it in XSL doesn't work:</p>
  
  <pre><code>&lt;xsl:value-of select="format-number(PerChg, '#0%')"/&gt;
  &lt;xsl:value-of select="format-number(PerChg, '#0%;-#0%')"/&gt;
  </code></pre>
  
  <p>Even tried:</p>
  
  <pre><code>&lt;xsl:decimal-format name="decimalChangePercent" minus-sign="-" /&gt;
  &lt;xsl:value-of select="format-number(PerChg, '#0%;-#0%', 'decimalChangePercent')"/&gt;
  </code></pre>
  
  <p>Any ideas? Am in the .NET world, using XslCompiledTransform/XSLT 1.0.</p>
  
  <p>Thanks!</p>