<ClinicalDocument>
<entry>
<substaceAdministration>
<effectiveTime></effectiveTime>
</substaceAdministration>
</entry>
<entry>
<substaceAdministration>
<effectiveTime></effectiveTime>
</substaceAdministration>
</entry>
<entry>
<substaceAdministration>
</substaceAdministration>
</entry>
</ClinicalDocument>
I have to assert for each entry/substaceAdministration is effectiveTime element is present or not.
I have tried with this expression
<xsl:when test="count(ClinicalDocument/entry/substanceAdministration/effectiveTime)=1"/>
I am looking for advice on how to change my XPath expression to meet this requirement.