注册 登录
编程论坛 Ruby论坛

[求助]xsl实现样式问题

yueyazhimeng 发布于 2006-10-17 11:17, 3487 次点击
我的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
1 回复
#2
Dreamprince2006-12-25 21:51
[讨论]
太废时间了你可以参考一下这个发过的例子有问题在留言
只有本站会员才能查看附件,请 登录

1