title: can't access text bloc using XPath
body: <p>I have a XML file that I want to transform using XSLT. The idea is to put all what's before each <code>&lt;paragraph/&gt;</code> tags into <code>&lt;p&gt;&lt;/p&gt;</code> tags.</p>
  
  <p>XML File :</p>
  
  <pre><code>&lt;section&gt;
      Hello everyone, I'm
      &lt;bold&gt;Hackmania&lt;/bold&gt;
      &lt;bold&gt;15&lt;/bold&gt;
      &lt;line/&gt;
      I am looking for an
      &lt;highlight&gt;answer&lt;/highlight&gt;
      &lt;paragraph/&gt;
  
      Here is an other
      &lt;bold&gt;paragraph&lt;/bold&gt;
      &lt;highlight&gt;with the same tags&lt;/highlight&gt;
      &lt;paragraph/&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>Wanted transformed XML :</p>
  
  <pre><code>&lt;section&gt;
      &lt;p&gt;
          Hello everyone, I'm
          &lt;bold&gt;Hackmania&lt;/bold&gt;
          &lt;bold&gt;15&lt;/bold&gt;
          &lt;line/&gt;
          I am looking for an
          &lt;highlight&gt;answer&lt;/highlight&gt;
      &lt;/p&gt;
      &lt;p&gt;
          HHere is an other
          &lt;bold&gt;paragraph&lt;/bold&gt;
          &lt;highlight&gt;with the same tags&lt;/highlight&gt;
      &lt;/p&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>And here is my XSL file :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet&gt;
      &lt;xsl:template match="/"&gt;
          &lt;section&gt;
              &lt;xsl:apply-templates/&gt;
          &lt;/section&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template match="paragraph"&gt;
          &lt;xsl:for-each select="."&gt;
              &lt;p&gt;
                  &lt;xsl:apply-templates select="/*/*[preceding-sibling::paragraph]"/&gt;
              &lt;/p&gt;
          &lt;/xsl:for-each&gt;
  
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Thanks in advance for you help.</p>