Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
<
<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!
Thank you, Trevor, that didn't work.
this works:
../ancestor::randomList[1][@listItemPrefix='pf01']
Wait, what? That's what I had originally, but now it's working for some reason.
Thanks, Richard, unfortunately didn't work. (There were two randomLists, easy to miss)
Hi Keith,
Thanks for the reply, unfortunately it didn't work.
This did: ../ancestor::randomList[1][@listItemPrefix='pf01']
