Count empty leaf
Hi I would like a way to count the empty leaf (in xslt transformation)
by example
<A>
<b1>
<c>xxx</c>
<c>xxx</c>
<c>xxx</c>
</b1>
<b2>
<c/>
</b2>
</A>
<B>
<b1>
<c>xxx</c>
</b1>
<b2>
<c/>
</b2>
<b3>
<c/>
</b3>
</B>
--> I need this results :
<A> have 3 <c> plus 1 empty <c> for a total of 4
<B> have 1 <c> plus 2 empty <c> for a total of 3
Thanks
|