title: Sum function in XSL
body: <p>The Below is my input XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;LogiusInhouse&gt;
      &lt;qty9 field="QTY_9,11#"&gt;
          &lt;type&gt;90&lt;/type&gt;
          &lt;value&gt;12&lt;/value&gt;
      &lt;/qty9&gt;
      &lt;qty9 field="QTY_9,11#"&gt;
          &lt;type&gt;90&lt;/type&gt;
          &lt;value&gt;12&lt;/value&gt;
      &lt;/qty9&gt;
      &lt;dtm9 field="DTM_9,11#"&gt;
          &lt;type&gt;145&lt;/type&gt;
          &lt;date&gt;20130308&lt;/date&gt;
          &lt;format&gt;102&lt;/format&gt;
      &lt;/dtm9&gt;
  &lt;/LogiusInhouse&gt;
  </code></pre>
  
  <p>XSL:</p>
  
  <pre><code>&lt;xsl:template match="/LogiusInhouse"&gt;
  
          &lt;xsl:value-of select="abs(sum(qty9[type='90']/value))div 1000 "/&gt;
  
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>my problem is i need to get the absolute sum afterthat it has to be divided by 1000 but iam not getting the result.Please help me on this.</p>