XPATH help
<
<listitem><para>text
<randomlist>
<I am here<para>text</para></listitem>
<listitem><para>text</para></listitem>
<listitem><para>text</para></listitem>
</randomlist>
</para></listitem>
</randomlist>
I'm trying to test if the top randomList has listItemPrefix="pf01" and ignore it if it doesn't have the attribute set
This doesn't work, I thought it would take me to the first randomList ancestor of listitem parent
../ancestor::randomList[1][@listitemPrefix='pf01']
Thanks for any help!

