title: How to get the modulus of a number in XPath/XSLT?
body: <p>I want to calculate the modulus of a number in the XPath, but this is not working:</p>
  
  <pre><code>&lt;xsl:if test="(count()%8)"&gt;
  </code></pre>
  
  <p>How would I do it? I Looked at the XPath <a href="http://www.w3schools.com/xpath/xpath_functions.asp" rel="noreferrer">function reference here</a>, but didn't see anything like that.</p>