title: split string in xsl and update attribute
body: <p>I have a xml file with below structure</p>
  
  <pre><code>    &lt;project&gt;
      &lt;dependency id="abc" version="1.2.3.4"/&gt;
      &lt;/project&gt;
  </code></pre>
  
  <p>I need to read this xml and update another xml with the value of id and version. Earlier i did this with an xsl like below, which was working fine:</p>
  
  <pre><code>    &lt;xsl:attribute name="id"&gt;
      &lt;xsl:value-of select="@id"/&gt;
      &lt;/xsl:attribute&gt;
  
      &lt;xsl:attribute name="version"&gt;
      &lt;xsl:value-of select="@version"/&gt;
      &lt;/xsl:attribute&gt;
  </code></pre>
  
  <p>Now I need to set the attribute value of version as [1.2,1.3), how can I do this? I tried something like this below, but I dont think I'm getting no where.</p>
  
  <pre><code>    &lt;xsl:variable name="MinVersion"/&gt;
      &lt;xsl:variable name="MaxVersion"/&gt;
  
  &lt;xsl:for-each select="tokenize(@version,'.')"&gt;
  
  &lt;xsl:if test="(position( )) = 2"&gt;
      &lt;xsl:value-of select="concat($MinVersion,.)"/&gt;
  &lt;/xsl:if&gt;
  &lt;xsl:otherwise&gt;
      &lt;xsl:value-of select="concat($MinVersion,.,'.')"/&gt;
  &lt;/xsl:otherwise&gt;
  
  &lt;xsl:if test="(position( )) = 2"&gt;
      &lt;xsl:value-of select="concat($MaxVersion,number(.)+1)"/&gt;
  &lt;/xsl:if&gt;
  &lt;xsl:otherwise&gt;
      &lt;xsl:value-of select="concat($MaxVersion,.,'.')"/&gt;
  &lt;/xsl:otherwise&gt;
   &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>How can I do this?</p>
  
  <p>UPDATE: I tried to debug this in Visual Studio and got error message stating tokenize is not a recognized function. After some searching found .NET framework supports only XSLT 1.0 processor. Any solution with 1.0 would be helpful.</p>