Hello everyone,
I am confused about how this XSLT apply-template statement works for cd/title/artist elements in the w3school sample,
http://www.w3schools.com/xsl/xsl_apply_templates.asp
Here is the code snippet I am confused, I am confused when xslt processor finds <xsl:apply-templates/>
in below sample, it will match all child nodes of "current node", i.e. the document root's child node, and the child node should be catalog node. But in the XSLT file, there is no template matched for catalog, and only matched for cd/title/artist.
Could anyone let me know after the below template matches for catalog node in <xsl:apply-templates/>
, how catalog's child node is processed please?
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
thanks in advance, George