GIVEN XML
<lists>
<list>
<param type="a">content</param>
</list>
<list>
<param type="b">content2</param>
</list>
<list>
<param type="a">content</param>
<param type="b">content2</param>
</list>
<list>
<param type="c">content3</param>
</list>
</lists>
- I need to process any
list/param[@type = 'a'|'b']and I can do that, but I want the wholeparent:listand loop when there may be more than onechild::paramand I can do that. I'm just not sure how to get the entire parent node with any param attribute based on the match of type 'a' or type 'b'. (XPATH needed) - then I need to process any
listwithout aparam[@type = 'a'|'b'], and I can do that. But need the correct XPATH to get that as I'm going through thelists
My template right now just matches "list", but need a "branch"? choose/when/otherwise (?) - I'm not sure I have the XPATH syntax right. Thanks, I'm just trying to save time without trial and error!
I tried a lot of things, and know I have the incorrect paths. So just seeing if I have anything off.
The XPath for a list with
aorbThe XPath for a list without
aorbOR
The XPath for a list with
aorbThe XPath for a list without
aorb