jaango123 0 Light Poster

Hi All,


Can anyone please let us know whether this can be done using apply templates or for each.

The below xml, MuliResponse, can contain, multiple, even number, of soap Body parts. The funda is, if we have one card in the input, multiResponse will have 2 soap Body parts.4 for 2 and so forth. one for getDemo and one for getCard, as attached
Now each of the soap Body could be of the below three types, app error, syserror and success. The structure is different in these cases(attached).


Could anyone please tell me, how to get the position of soap:Body at any time.
example, I can implement the logic for app error using, root causes occur at a particular level, in Multiresponse xml

<xsl:apply-templates select="/*/*/*rootCauses"/>

<xsl:template match="rootCauses">

specific logic here

Now in my specific logic section, i want to get the position of soapBody, correspoding to this part, within the multicard response. How can I get this number?. This logiccan be used to take the corresponding input card number.