title: XSLT on docx for merging adjacent elements
body: <p>I have a set of interview transcripts in MS Word docx format, which I want to convert to my own custom xml schema:</p>
  
  <p>A paragraph in my word doc looks like this:</p>
  
  <p><strong>Jon:</strong> This is my interview. <em>Now I am shouting</em> Now I am speaking normally again.</p>
  
  <p>and in my custom schema should look like this:</p>
  
  <pre><code>&lt;para speaker="jon"&gt;
      &lt;content&gt;This is my interview.&lt;/content&gt;
      &lt;content emphasis="true"&gt;Now I am shouting!&lt;/content&gt;
      &lt;content&gt;Now I am speaking normally again.&lt;/content&gt;
  &lt;/para&gt;
  </code></pre>
  
  <p>In the docx xml, I want adjacent w:r elements to be merged into a single  element in all other cases.</p>
  
  <p>Any help would be much appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Swami</p>