title: XSL test if self-closed element is met in for-each loop
body: <p>Here's xml example:</p>
  
  <pre><code>&lt;a&gt;
      &lt;b&gt;Text&lt;/b&gt;
      &lt;b&gt;Text&lt;/b&gt;
      &lt;b&gt;Text&lt;/b&gt;
      &lt;page/&gt;
      &lt;b&gt;Text&lt;/b&gt;
      &lt;b&gt;Text&lt;/b&gt;
      &lt;page/&gt;
      &lt;b&gt;Text&lt;/b&gt;
      &lt;b&gt;Text&lt;/b&gt;
      &lt;b&gt;Text&lt;/b&gt;
      &lt;b&gt;Text&lt;/b&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>And here is html I want to achieve:</p>
  
  <pre><code>&lt;p&gt;Text Text Text&lt;/p&gt;
  &lt;p&gt;Text Text&lt;/p&gt;
  &lt;p&gt;Text Text Text Text&lt;/p&gt;
  </code></pre>
  
  <p>It's first time I'm using XSL so please, forgive me.</p>
  
  <p>Right now I'm using this loop:</p>
  
  <pre><code>&lt;xsl:for-each select="a/*"&gt;
      &lt;p&gt;
      &lt;xsl:value-of select="."/&gt;
      &lt;xsl:if test="UNKNOWN_TEST"&gt;
      &lt;/p&gt;
      &lt;/xsl:if&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>My question is, what do I need to type instead of UNKNOWN_TEST here? Or maybe that's not they way I should try to work it out?</p>