Please help on this issue.
I want to check an XML contains a node or not [OR] it is an empty file using XSLT.
My XML is:
<mynode>
<node1>testing</node1>
</mynode>
I want to write XSLT code something like this:
<xsl:choose>
<xsl:when test="document('')/mynode">
file is empty
</xsl:when>
<xsl:otherwise>
file has nodes
</xsl:otherwise>
</xsl:choose>
Please any one can help me on this.....