<ClinicalDocument>
<entry>
<substaceAdministration>
<effectiveTime></effectiveTime>
</substaceAdministration>
</entry>
<entry>
<substaceAdministration>
<effectiveTime></effectiveTime>
</substaceAdministration>
</entry>
<entry>
<substaceAdministration>
</substaceAdministration>
</entry>
</ClinicalDocument>
我必須爲每個條目斷言/ substaceAdministration is effectiveTime元素是否存在。如何爲每個孩子斷言一個元素是否存在
我試圖與這個表達式
<xsl:when test="count(ClinicalDocument/entry/substanceAdministration/effectiveTime)=1"/>
我找諮詢如何改變我的XPath表達式來滿足這一要求。