Community Tip - You can change your system assigned username to something more personal in your community settings. X
I am using this expression:
count(../preceding::*[(self::figure)][title]) +1 to count figures
but I would like it to reset when it hits a <wpno> tag which seems doable but I can't get the syntax correct.<wpno> is an inline tag, it doesn't have children.
Thanks in advance!
It works. Awesome. Thanks, Brandon!
Regards,Caroline
I am using this in a header:
//wpno/text()
but I want it to use the current wpno. This is just returning the first wpno of the document for all the pages. Is this doable in a header? When I tried the "Insert element content" menu in the header in Styler, I was never able to return anything, which is why I'm trying to figure out this XPATH. I tried experimenting with "preceding::wpno" but that hung up my CPU.
Not sure if I'm making sense. Thanks for any help!
Thank you so much everyone for your advice. (Steve, I meant the most recent wpno seen in traversing the document, it does not have children and there is only one per section (wp). Page numbering, headers, etc must be restarted in each wp.)