Suppose my XML is like

 

<containerCatalog  id='0'>

      <container name="Root Node" classId="">

      <container name="srinivas" classId="">

      <container name="Test" classId="">

</containerCatalog>

 

When I use it by first taking in variable and then calling

say in template <xsl:value-of select="count($var_name/container)"> its giving error.

 

But while I call though apply template by matching template to containerCatalog and then

 

using <xsl:value-of select="count(container)"> then its working fine.

Reply via email to