I am new to XSLT and I cannot figure out how to get the xsl: if it matches when there are no child tags.
I want this to match:
<context> howdy </context>
And this is not:
<context> <child> howdy </child> </context>
the corresponding xpath expression should look like this:
//context[not(./*)]
You can also specify count(child::*) = 0 .
count(child::*) = 0 .