<p>I have something like this:</p>

<pre><code>&lt;node TEXT="   txt A   "/&gt;
&lt;node TEXT="

       txt X

"/&gt;
&lt;node&gt;
   &lt;html&gt;
      &lt;p&gt;
        txt Y
      &lt;/p&gt;
   &lt;/html&gt;
&lt;/node&gt;
&lt;node TEXT="txt B"/&gt;
</code></pre>

<p>and i want to use XSLT to get this:</p>

<pre><code>txt A
txt X
txt Y
txt B
</code></pre>

<p>I want to strip all useless whitespaces and linebreaks of @TEXT's and CDATA's. The only XML-input that is giving structure to the output are the <code>&lt;node&gt;</code>-tags.</p>

You probably want
```
```
<xsl:strip-space elements="node"/>
```
```
explained
here
. And this
article
has a lot more details.