If you look through the documentation, you will find a reference to:
%ifvar equals(‘something here’)%
You will have to trap for each instance. My recommendation at this point is to use an intermediate flow to sort out the data into a record that you can use to loop in the dsp.
DSPs are very limited (my opinion); if you go through WmRoot/pub directory, you’ll find nothing but DSPs. The entire admin web console for Integration Server deploys DSPs, so take a look at what the WM gurus did to display data to get some ideas as well.
Or, wait until 6.0+ is released so you can go wild with JSPs.
Ray
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods