Reverse Xpath expression
I need to create a xpath-expression in Styler that finds at the latest section element with a specific value on it´s type attribute. The section element can be nestled so I cant predict where the type attribute was set the last time. I need to do this so that I know what derived section type I have.
Example of context:
- section/section@type='xx'/section
- section/section/section/section@type='xx'
- section@type='xy'/section@type='xx'/section/section
In all the above I need to know the latest section where type was set.
My thought was to create the following condition (and repeat it for other type values):
parent::section[@type='xx']
Unfortunatly it doesn´t seem to do the trick and I have spoken to others working with Styler that says it is hard to create working reverse expressions in Styler.
Has anyone had any experience of this or perhaps even a solution?
Greatful for all answers!

