title: How to match the processing-instruction element in XSLT?
body: <p>I have some processing-instructions elements inside my xml content, for example : </p>
  
  <pre><code>&lt;?legalnoticestart?&gt;
  &lt;?sourcenotestart?&gt;
  &lt;para&gt;Content para&lt;/para&gt;
  &lt;?sourcenoteend?&gt;
  &lt;?literallayoutstart?&gt;
  &lt;para&gt;body content &lt;/para&gt;
  &lt;?literallayoutend?&gt;
  &lt;?legalnoticeend?&gt;
  </code></pre>
  
  <p>How can i match these elements and get the content in the below required element format?</p>
  
  <p>Required xml:</p>
  
  <pre><code>&lt;legalnotice&gt;
  &lt;sourcenote&gt;
  &lt;p&gt;Content para&lt;/p&gt;
  &lt;/sourcenote&gt;
  &lt;literallayout&gt;
  &lt;p&gt;body content&lt;/p&gt;
  &lt;/literallayout&gt;
  &lt;/legalnotice&gt;
  </code></pre>
  
  <p>Please advice....</p>
  
  <p>Best Regards,
  Antony</p>