XPATH question (again)
Here's my structure (Styler 5.4):
<condtinsp>
<inspection>
<condition></condition>
<req></req>
</inspection><inspection>
<condition></condition>
<req></req>
</inspection><inspection>
<condition></condition>
<req></req>
</inspection><inspection>
<condition></condition>
</condtinsp>
I want to number the condition tags but only if they have content (they have no title so making them a Formal Block didn't help) with the XPATH count(../preceding::condition) + 1
I created a content test condition for the XPATH on <condition> in Styler so only the non-empty conditions are numbered, but the counter is incrementing on the empty conditions. So the first three numbered <condition>s are numbered 1, 9, 10 because there are 8 empty conditions following the first numbered one.
I don't know how to keep the empty <conditions> from incrementing the counter, or if that is even possible. Some kind of subtraction, maybe?
Thanks for any ideas!

