title: How to compute based on condition in xsl
body: <p>I have below xml.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Data&gt;
      &lt;ip_address action="del"&gt;192.100.200.323&lt;/ip_address&gt;
      &lt;ip_address action="del"&gt;192.100.200.324&lt;/ip_address&gt;
      &lt;ip_address action="del"&gt;192.100.200.325&lt;/ip_address&gt;
      &lt;ip_address action="del"&gt;192.100.200.326&lt;/ip_address&gt;
      &lt;ip_address action="del"&gt;192.100.200.327&lt;/ip_address&gt;
  &lt;/Data&gt;
  </code></pre>
  
  <p>I am trying to achieve below output. I think, logic will be to have two variable, and for each occurence, substring the last part and assign min and max and at last concat first 3 part+(dot)+min+(-)+max. Any suggestion, how to write xsl for it?</p>
  
  <pre><code>&lt;ipAdress&gt;192.100.200.323-327&lt;/ipAdress&gt;
  </code></pre>