title: Convert tuple to number in XSL
body: <p>Let's say I have this list of tuples:</p>
  
  <pre><code>&lt;TupleList&gt;
      &lt;Tuple&gt;1.1.1&lt;/Tuple&gt;
      &lt;Tuple&gt;1.1.2&lt;/Tuple&gt;
      &lt;Tuple&gt;1.1.3&lt;/Tuple&gt;
      &lt;Tuple&gt;1.2.1&lt;/Tuple&gt;
      &lt;Tuple&gt;1.2.2.1&lt;/Tuple&gt;
      &lt;Tuple&gt;1.2.2.2&lt;/Tuple&gt;
      &lt;Tuple&gt;1.2.2.3&lt;/Tuple&gt;
      &lt;Tuple&gt;1.2.3&lt;/Tuple&gt;
      &lt;Tuple&gt;1.3.1&lt;/Tuple&gt;
      &lt;Tuple&gt;1.3.2&lt;/Tuple&gt;
      &lt;Tuple&gt;1.3.3&lt;/Tuple&gt;
  &lt;/TupleList&gt;
  </code></pre>
  
  <p>Now, let's say I want to process each one into a number like this:</p>
  
  <pre><code>1001001000
  1001002000
  1001003000
  1002001000
  1002002001
  1002002002
  1002002003
  1002003000
  1003001000
  1003002000
  1003003000
  </code></pre>
  
  <p>In a normal programming language, I'd likely split each tuple by the '.' and then use the maximum array count returned to determine my overal size. I'd then (probably) loop through each digit of each tuple multiplying that digit by 1000^(max-p), where p is my current position in the array.</p>
  
  <p>All that said, is there a way for me to do something like this in XSL? Not using C# or any other embedded language as I don't know if the tool I'm working with will let me.</p>
  
  <p>Is this even possible in straight XSL without resorting to a more advanced programming language?</p>
  
  <p>As always, any and all clues greatly appreciated.</p>