Subject:Loop to specific child element using XSL Author:Latoya Farrell Date:24 Mar 2005 11:52 AM
Good Morning,
I am new to this site and to XSL. I have the following XML:
<PayClassList>
<PayClassInformation>
<PayClassDesc>Payable</PayClassDesc>
<PayClassCode> 2400</PayClassCode>
<PayClassCodeSubCd></PayClassCodeSubCd>
<PayClassAmt>18.00</PayClassAmt>
</PayClassInformation>
<PayClassInformation>
<PayClassDesc>Returned Check Fee</PayClassDesc>
<PayClassCode>2404</PayClassCode>
<PayClassCodeSubCd></PayClassCodeSubCd>
<PayClassAmt>25.00</PayClassAmt>
</PayClassInformation>
<PayClassList>
I have a for each PayClassInformation Loop.
I know that select ".//" will give me the first child element (PayClassDesc)
in PayClassInformation. select "." will give me all 4 childs. I just need
to know how do I select PayClassCode or even PayClassSubCode.