title: string processing with xsl:apply-templates
body: <p>I have a xml that looks like this,</p>
  
  <pre><code>&lt;Parent&gt; Running text with marked up entities like 
    &lt;Child&gt;Entity1&lt;/Child&gt; 
   and, text in the middle too, and
    &lt;Child&gt; Entity2 &lt;/Child&gt;
  &lt;/Parent&gt;
  </code></pre>
  
  <p>I have to preserve the line breaks and indentation when rendering the parent, but also apply a highlighting template to every child tag.</p>
  
  <p>Now, the moment I capture the contents of the parent tag in a variable to do some string processing in XSL, I lose the underlying xml structure and cant apply the highlighting template to the children.</p>
  
  <p>Whereas, I cant think of any other way to preserve the line breaks and indentation of the text contained in the parent tag.</p>
  
  <p>Any ideas?</p>