I have the following collection in an XML document:
<events>
<event>
<type>Downloaded</type>
<result>Sucess</result>
</event>
<event>
<type>Processed</type>
<result>Sucess</result>
</event>
</events>
Now in my XSLT I have a table with a TD - I want the value of this TD to represent the status of the events. If an event exists for processed and result is true, then I want the value of this TD to be Processed, likewise, if processed doesn't exist, then if downloaded exists and status is success, then I want the value of the TD to be downloaded...
Don't expect full code, just a sample on how to add some programming logic to XSLT.
What I really need to check for ... is
Does Element Event Exist with type = "Processed".... if not... then.... I'll figure the rest out.....