How to select ancestor based on ancestor's attribute
- by kman
I am new to this, so please bear with me...
I need to very simply modify content based on a template match:
topic/body/section/title
This template match works fine. However, I need this to only happen if the topic element has a title element with the value of "Preface".
Can someone please help with the code?
Here is the code:
<topic>
…