i have the below pieces of my xml.
Case1:
<para>
<content-style font-style="bold">Affidavit</content-style>
</para>
Case2:
<para>This is a different <content-style font-style="bold">Affidavit</content-style> case
</para>
i want here the control to call section template if there is only node present(Case 1) but not if it also has text in it(Case 2). i tried the below xslt but it is not working. please let me know how to do it.
<xsl:template match="para">
<xsl:choose>
<xsl:when test="child::content-style/node[1]">
<xsl:call-template name="section"/>
</when></xsl:choose>
</xsl:template>
Thanks