例如
<SCHOOL>
<STUDENT NAME="BOB">
<GRADE SCORE="50"/>
<GRADE SCORE="10"/>
<GRADE SCORE="20"/>
<GRADE SCORE="40"/>
<GRADE SCORE="90"/>
<GRADE SCORE="30"/>
</STUDENT>
</SCHOOL>
转换为
<SCHOOL>
<STUDENT NAME="BOB">
<GRADE SCORE="50"/>
<GRADE SCORE="10"/>
<GRADE SCORE="20"/>
</STUDENT>
<STUDENT NAME="BOB">
<GRADE SCORE="40"/>
<GRADE SCORE="90"/>
<GRADE SCORE="30"/>
</STUDENT>
</SCHOOL>
我才刚刚开始使用 xslt 并且不知道如何做到这一点!