Hello everyone,
I am confused about XSLT apply-template statement. For example, here in w3school.
http://www.w3schools.com/xsl/xsl_apply_templates.asp
It is mentioned -- "The <xsl:apply-templates>
element applies a template to the current element or to the current element's child nodes.", my question is whether it is applied to current element or to child nodes or both? The word "or" makes me confused about its definite behavior.
EDIT 1: here is the code snippet I am confused, I am confused when xslt processor finds <xsl:apply-templates/>
, it will match all child nodes of "current node". Here "current node" means catalog or another virtual abstract XML root node? and why?
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
thanks in advance, George