XSL to find values based on text

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
I have below XML input from which I have pick string values from CustPermId, BankProdId, CustPayeeId nodes and form another request to send it to different service. Below request will be dynamic and there can be one (either CustPermId, BankProdId
or CustPayeeId) or more than one Filter criterias will be there.

For example, if CustPermId is there in request, I want to pick value 001, and same for BankProdId in this case value shall be 002 so on.

<Filter><br/>
<span style="white-space:pre <LeftOperand><br/>
<span style="white-space:pre <Expression><br/>
<span style="white-space:pre <LeftOperand><br/>
<span style="white-space:pre <Expression><br/>
<span style="white-space:pre <LeftOperand><br/>
<span style="white-space:pre <PropName>CustPermId</PropName><br/>
<span style="white-space:pre </LeftOperand><br/>
<span style="white-space:pre <Operator><br/>
<span style="white-space:pre <Type>Comparison</Type><br/>
<span style="white-space:pre <Val>Equal</Val><br/>
<span style="white-space:pre </Operator><br/>
<span style="white-space:pre <RightOperand><br/>
<span style="white-space:pre <Literal><br/>
<span style="white-space:pre <Type>string</Type><br/>
<span style="white-space:pre <Val>001</Val><br/>
<span style="white-space:pre </Literal><br/>
<span style="white-space:pre </RightOperand><br/>
<span style="white-space:pre </Expression><br/>
<span style="white-space:pre </LeftOperand><br/>
<span style="white-space:pre <Operator><br/>
<span style="white-space:pre <Type>Logical</Type><br/>
<span style="white-space:pre <Val>And</Val><br/>
<span style="white-space:pre </Operator><br/>
<span style="white-space:pre <RightOperand><br/>
<span style="white-space:pre <Expression><br/>
<span style="white-space:pre <LeftOperand><br/>
<span style="white-space:pre <PropName>BankProdId</PropName><br/>
<span style="white-space:pre </LeftOperand><br/>
<span style="white-space:pre <Operator><br/>
<span style="white-space:pre <Type>Comparison</Type><br/>
<span style="white-space:pre <Val>Equal</Val><br/>
<span style="white-space:pre </Operator><br/>
<span style="white-space:pre <RightOperand><br/>
<span style="white-space:pre <Literal><br/>
<span style="white-space:pre <Type>string</Type><br/>
<span style="white-space:pre <Val>002</Val><br/>
<span style="white-space:pre </Literal><br/>
<span style="white-space:pre </RightOperand><br/>
<span style="white-space:pre </Expression><br/>
<span style="white-space:pre </RightOperand><br/>
<span style="white-space:pre </Expression><br/>
<span style="white-space:pre </LeftOperand><br/>
<span style="white-space:pre <Operator><br/>
<span style="white-space:pre <Type>Logical</Type><br/>
<span style="white-space:pre <Val>And</Val><br/>
<span style="white-space:pre </Operator><br/>
<span style="white-space:pre <RightOperand><br/>
<span style="white-space:pre <Expression><br/>
<span style="white-space:pre <LeftOperand><br/>
<span style="white-space:pre <PropName>CustPayeeId</PropName><br/>
<span style="white-space:pre </LeftOperand><br/>
<span style="white-space:pre <Operator><br/>
<span style="white-space:pre <Type>Comparison</Type><br/>
<span style="white-space:pre <Val>Equal</Val><br/>
<span style="white-space:pre </Operator><br/>
<span style="white-space:pre <RightOperand><br/>
<span style="white-space:pre <Literal><br/>
<span style="white-space:pre <Type>string</Type><br/>
<span style="white-space:pre <Val>003</Val><br/>
<span style="white-space:pre </Literal><br/>
<span style="white-space:pre </RightOperand><br/>
<span style="white-space:pre </Expression><br/>
<span style="white-space:pre </RightOperand><br/>
<span style="white-space:pre </Filter>


View the full article
 
Back
Top