Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
XSLT は初めてで、子タグがない場合に一致する xsl:if を取得する方法がわかりません。
これを一致させたい:
<context> howdy </context>
そして、これはそうではありません:
<context> <child> howdy </child> </context>
関連する xpath 式は次のようになります。
//context[not(./*)]
指定することもできます count(child::*) = 0 .
count(child::*) = 0 .