title: lookup for especial node in if condition XSLT
body: <p>Hi I have trouble with a if condition in my code. Well, to be accurate here is the XML file:</p>
  
  <pre><code>&lt;root name="fristLevel"&gt;
      &lt;test name="secondaryLevel_1"&gt;
          &lt;medium&gt;
              &lt;scribe&gt;
                  &lt;cloude&gt;
                      something is here
                  &lt;/cloude&gt;
              &lt;/scribe&gt;
              &lt;demo&gt;
                  something is here
              &lt;/demo&gt;
          &lt;/medium&gt;
      &lt;/test&gt;
      &lt;test name="secondaryLevel_2"&gt;
          &lt;medium&gt;
              &lt;demo&gt;
                  something is here
              &lt;/demo&gt;
          &lt;/medium&gt;
      &lt;/test&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>What I am looking for is an IF condition which does something if <code>medium</code> has a child node as follows:</p>
  
  <pre><code>&lt;xsl:for-each select="root/test"&gt;
      &lt;xsl:if test="medium/scribe/node()"&gt;
          &lt;!-- something here  --&gt;
      &lt;/xsl:if&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>But it does not work for me. Does anybody has another any better idea?</p>