title: XSLT apply-template question
body: <p>I am confused about XSLT apply-template statement. For example, here in w3school.</p>
  
  <p><a href="http://www.w3schools.com/xsl/xsl_apply_templates.asp" rel="noreferrer">http://www.w3schools.com/xsl/xsl_apply_templates.asp</a></p>
  
  <p>For the statements,</p>
  
  <pre><code>&lt;xsl:template match="/"&gt;
    &lt;html&gt;
    &lt;body&gt;
    &lt;h2&gt;My CD Collection&lt;/h2&gt;
    &lt;xsl:apply-templates/&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>my confusions are,</p>
  
  <p>(1) what is the function of <code>&lt;xsl:apply-templates/&gt;</code>? It does not contain any specific template to call. I think it will match (return) all directly child of current element (non-direct child of current node will not be returned, current node is root node), not sure whether I am correct? </p>
  
  <p>(2) after all matched nodes are returned in (1), what are the next step XSLT processor will do? </p>
  
  <p>(3) in this specifc sample, the root node is catalog or another higher level of root? and why?</p>
  
  <p>thanks in advance,
  George</p>