我想通过 XSL 在以下 XML 中找到每个不同员工的最高工资的唯一记录:
<?xml version="1.0" encoding="UTF-8"?>
<Root>
<Record recordNumber="1">
<SALARY>20000</SALARY>
<EMPLOYEE>Emp1</EMPLOYEE>
<AGE>32</AGE>
</Record>
<Record recordNumber="2">
<SALARY>34000</SALARY>
<EMPLOYEE>Emp2</EMPLOYEE>
<AGE>34</AGE>
</Record>
<Record recordNumber="3">
<SALARY>12000</SALARY>
<EMPLOYEE>Emp1</EMPLOYEE>
<AGE>32</AGE>
</Record>
<Record recordNumber="4">
<SALARY>15000</SALARY>
<EMPLOYEE>Emp2</EMPLOYEE>
<AGE>34</AGE>
</Record>
<Record recordNumber="5">
<SALARY>22000</SALARY>
<EMPLOYEE>Emp1</EMPLOYEE>
<AGE>32</AGE>
</Record>
<Record recordNumber="6">
<SALARY>35000</SALARY>
<EMPLOYEE>Emp2</EMPLOYEE>
<AGE>34</AGE>
</Record>
</Root>
提前致谢。
PS:但是我在这里粘贴了所有 XML 但预览不一样。所以,请不要介意。:)