Consider the following XML:
<AllMyDataz> <Data> <Item1>A</Item1> </Data> <Data> <Item1>B</Item1> </Data> <Data> <Item1>A</Item1> </Data> </AllMyDataz>
In my transformation, I only want to do something if any of the "Data" elements contains a child of Item1 with a value of "A". I also want to do this once, even if several โDataโ criteria match the criteria.
I think I need to write the <xsl:if test=""> operator to return true if any Data / Item1 contains the value "A".
Does anyone know how to do this with an if statement or in any other way?
Thanks in advance:)
for -Alex-
Alex
source share