title: Parse string in XML with xslt
body: <p>I have the following data in an XML file.</p>
  
  <pre><code>&lt;Message number=1&gt;
      &lt;Field name="option1" type="Enumerated" desc="Interpret this field as the Number to which the Sector is slaved:  0 = Some Text for option 1 = A Different text option  2 = Yet another text option 8 – 10 = Reserved."/&gt;
      &lt;Field name="option2" type="Enumerated" desc="Interpret this field as data rate  4 = 2Mbit 5 = 1Mbit 6 = .5MBit"/&gt;
  &lt;/Message&gt;
  &lt;Message number=2&gt;
      &lt;Field name="option3" type="Enumerated" desc="Interpret this field as the altitute.  0 = 100 feet 1 = 200 feet  2 = 300 feet 3 – 5 = SPARE."/&gt;
  &lt;/Message&gt;
  </code></pre>
  
  <p>I want to parse the desc attribute to the following xml format:</p>
  
  <pre><code>&lt;Enumerations&gt;
      &lt;Enumeration name="option1"&gt;
          &lt;Enumerator value="0" name="Some Text for option"/&gt;
          &lt;Enumerator value="1" name="A Different text option"/&gt;
          &lt;Enumerator value="2" name="Yet another text option"/&gt;
          &lt;Enumerator value="8" name="Reserved"/&gt;
          &lt;Enumerator value="9" name="Reserved"/&gt;
          &lt;Enumerator value="10" name="Reserved"/&gt;
      &lt;/Enumeration&gt;
      &lt;Enumeration name="option2"&gt;
          &lt;Enumerator value="4" name="2Mbit"/&gt;
          &lt;Enumerator value="5" name="1Mbit"/&gt;
          &lt;Enumerator value="6" name=".5MBit"/&gt;
      &lt;/Enumeration&gt;
      &lt;Enumeration name="option3"&gt;
          &lt;Enumerator value="0" name="100 feet"/&gt;
          &lt;Enumerator value="1" name="200 feet"/&gt;
          &lt;Enumerator value="2" name="300 feet"/&gt;
          &lt;Enumerator value="3" name="SPARE"/&gt;
          &lt;Enumerator value="4" name="SPARE"/&gt;
          &lt;Enumerator value="5" name="SPARE"/&gt;
      &lt;/Enumeration&gt;
  &lt;Enumerations&gt;
  </code></pre>
  
  <p>The problems I'm having is that my data xml file (which is over 4K lines) has different start characters( : or , or " ") for the enumeration portion of the string.</p>
  
  <p>I though that I might be able to use <code>xsl:analyze-string</code> but I have been unable to determine the proper regular expression.</p>