[xsl] xslt template match

Subject: [xsl] xslt template match
From: Senthilukvelaan <skumaravelan@xxxxxxxxxxxxxx>
Date: Thu, 30 Jun 2011 21:44:57 -0700
Hi All,
I have a question in conditional match template. I want to call a
template like below when there is no child node called "TYPE" does not
exists condition also.
Please help me how do I do that? " TYPE " node is dynamic element in
the input xml. It might exist or not.

I have both templates in my xslt.
 <xsl:template match="ITEM[TYPE='ONLINE']">
do something
 </xsl:template>

 <xsl:template match="ITEM">
do another think
 </xsl:template>


Please help.

Thanks
Senthil

Current Thread