XSL Looping

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi
I want to know if the following is possible with XSL, if so, please guide me with this. Thanks.
I have an XML like this -
<AllEmp>
<EMPTable>
<Table>
<EID>1</EID>
<EmpID>1</EmpID>
<EmpName>Name1</EmpName>
<EmpDesig>Desig1<EmpDesig>
</Table>
<Table>
<EID>2</EID>
<EmpID>2</EmpID>
<EmpName>Name2</EmpName>
<EmpDesig>Desig2<EmpDesig>
</Table>
<Table>
<EID>3</EID>
<EmpID>3</EmpID>
<EmpName>Name3</EmpName>
<EmpDesig>Desig3<EmpDesig>
</Table>
<Table>
<EID>4</EID>
<EmpID>4</EmpID>
<EmpName>Name4</EmpName>
<EmpDesig>Desig4<EmpDesig>
</Table>
<EMPTable>
<EMPDetails>
<Table>
<ID>1>
<Dept>Dept1<Dept>
</Table>
</EMPDetails>
<AllEmp>
I am trying to do a foreach -
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
AllEmp/EMPTable/Table and trying to transform this to a different XML.
What I want to know is - can I send a list of comma separated values to the XSL as an argument, and process the XSL only for that.
Say I send EID - 1, 4
And I want to process only for those 1 & 4 from the sample XML given and get the transformed output, could you please advice on this. Thanks.


<hr class="sig Rpaul

View the full article
 
Back
Top