I need to be able to describe a context to identify the first sibling PARA tag in a sequence. I think the {first} qualifier means the first sibling - not the first sibling of the same element type. I have used the firstpargraph rule to implement numbering for the first paragraph in a prcitem and it works for all cases except this stupid REVST case. Note that the REVST/REVEND need to be placed in this location so that the whole paragraph can get a revision bar. I use the "between" qualifier in a PARA rule to turn the rev bars on. If the REVST/REVEND were inside the PARA I don't see a means to turn the rev bars on.
In the following example the first para numbers correctly. The second one does not get a number. This is probably because the <revst/> is considered the first paragraph so the first para rule does not fire.
<prclist1><prcitem1>
<prcitem>
<para>This is the first (and only) para in a prcitem and it is numbered correctly based on the firstparagraph rule.</para>
</prcitem>
</prcitem1>
<prcitem1>
<prcitem>
<revst/><para>This is the first paragraph in the prcitem so it should be numbered but it is not because the REVST seems to be treated as the first paragraph in the rule. I need to number the first sibling PARA tag.
</para>
<revend/>
<para>This is a second paragraph in a prcitem - and this one should never be numbered.
</para>
</prcitem>
</prcitem1>
</prclist1>
Is there any syntax to describe the first sibling of a specific type?
Perhaps something like para{first}<prcitem<prclist1
That does not work because I think it thinks I am asking for para whose parent is the first sibling.
Thanks - Jim