我的xml中的内容为:
<?xml version="1.0" encoding="utf-16" standalone="yes"?>
<Goodo>
<Record SpecialSet_ID="2" SpecialSetName="电脑1" total="2">
<ItemRecord User_ID="4" UserName="教师001" total="1" />
<ItemRecord User_ID="5" UserName="教师002" total="0" />
<ItemRecord User_ID="7" UserName="职工001" total="1" />
<ItemRecord User_ID="8" UserName="职工002" total="0" />
</Record>
<Record SpecialSet_ID="1" SpecialSetName="电脑实验室1" total="3">
<ItemRecord User_ID="4" UserName="教师001" total="0" />
<ItemRecord User_ID="5" UserName="教师002" total="0" />
<ItemRecord User_ID="7" UserName="职工001" total="0" />
<ItemRecord User_ID="8" UserName="职工002" total="3" />
</Record>
<Record SpecialSet_ID="4" SpecialSetName="化学实验室" total="1">
<ItemRecord User_ID="4" UserName="教师001" total="0" />
<ItemRecord User_ID="5" UserName="教师002" total="0" />
<ItemRecord User_ID="7" UserName="职工001" total="1" />
<ItemRecord User_ID="8" UserName="职工002" total="0" />
</Record>
<Record SpecialSet_ID="3" SpecialSetName="物理实验室" total="1">
<ItemRecord User_ID="4" UserName="教师001" total="0" />
<ItemRecord User_ID="5" UserName="教师002" total="1" />
<ItemRecord User_ID="7" UserName="职工001" total="0" />
<ItemRecord User_ID="8" UserName="职工002" total="0" />
</Record>
</Goodo>
如何利用xsl实现样式为如下的:这个xsl如何写,请高手帮帮忙,急啊
| 教师/物件名称 |
电脑1 |
电脑实验室1 |
物理实验室 |
化学实验室 |
| 教师001 |
1 |
0 |
0 |
0 |
| 教师002 |
0 |
0 |
0 |
1 |
| 职工001 |
1 |
0 |
1 |
0 |
| 职工002 |
0 |
3 |
0 |
0 |
| 合计 |
2 |
3 |
1 |
1 |