I have next xsl code:
<xsl:template match="/">
<html>
<!--some code here-->
<body bgcolor="#FFFFFF">
<xsl:apply-templates select="NAME" />
</body>
</html>
</xsl:template>
<xsl:template name="NAME" match="NAME">
<!--some code here-->
</xsl:template>
But template NAME is never reached, e.g. I have empty HTML with <body></body>
My XML structure is:
<ROOT>
<MainNode>
<NAMES>
<NAME></NAME>
</NAMES>
</MainNode>
</ROOT>
What could be the reason?
Try:
or specify node from document root: