<?xml version="1.0" encoding="gb2312" ?>
<?xml:stylesheet type="text/xsl" href="demo1.xslt" ?>
<root>
<ParentID ID="pid">123</ParentID>
<Sort Depth="1" ID="40B777" Name="建筑、建材" Hot="True" >
<Sort Depth="2" ID="713526" Name="建筑门窗及五金" Hot="True" Fid="40B777">
<Sort Depth="3" ID="DF50B7" Name="锁具" Hot="True" Fid="40B777" Sid="713526"/>
<Sort Depth="3" ID="A80533" Name="门" Hot="True" Fid="40B777" Sid="713526"/>
<Sort Depth="3" ID="D697D5" Name="窗" Hot="True" Fid="40B777" Sid="713526"/>
<Sort Depth="3" ID="30E1D5" Name="门窗五金" Hot="True" Fid="40B777" Sid="713526"/>
</Sort>
<Sort Depth="2" ID="BAC118" Name="厨卫设施" Hot="True" Fid="40B777">
<Sort Depth="3" ID="27CE8A" Name="厨房设施" Hot="True" Fid="40B777" Sid="BAC118"/>
<Sort Depth="3" ID="8AA2DD" Name="浴缸及配件" Hot="True" Fid="40B777" Sid="BAC118"/>
<Sort Depth="3" ID="4A22DB" Name="台面" Hot="True" Fid="40B777" Sid="BAC118"/>
<Sort Depth="3" ID="2873F4" Name="镜台" Hot="True" Fid="40B777" Sid="BAC118"/>
<Sort Depth="3" ID="413460" Name="浴室柜" Hot="True" Fid="40B777" Sid="BAC118"/>
<Sort Depth="3" ID="62F41A" Name="水暖五金" Hot="True" Fid="40B777" Sid="BAC118"/>
<Sort Depth="3" ID="3C9203" Name="面盆及配件" Hot="True" Fid="40B777" Sid="BAC118"/>
<Sort Depth="3" ID="0E2628" Name="座厕及配件" Hot="True" Fid="40B777" Sid="BAC118"/>
<Sort Depth="3" ID="7A80B3" Name="淋浴房、淋浴器" Hot="True" Fid="40B777" Sid="BAC118"/>
<Sort Depth="3" ID="BEC30F" Name="卫浴用五金件" Hot="True" Fid="40B777" Sid="BAC118"/>
</Sort>
<Sort Depth="2" ID="EFF40A" Name="建筑材料" Hot="True" Fid="40B777">
<Sort Depth="3" ID="3A4D09" Name="水泥" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="6C0746" Name="砖瓦及砌块" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="C3187C" Name="防水、防潮材料" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="1F859C" Name="建筑玻璃" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="6A9AE7" Name="沥青" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="34C387" Name="绝缘材料" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="5A27F1" Name="保温、隔热材料" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="22FAB3" Name="隔断与吊顶" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="96F2E8" Name="石材石料" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="AE001D" Name="隔音、吸声材料" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="974404" Name="金属建材" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="F04EF0" Name="石灰、石膏" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="9D6724" Name="钢结构" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="D5355A" Name="耐火、防火材料" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="506178" Name="塑料建材" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="EE339B" Name="工地施工材料" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="E07373" Name="特种建材" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="00CBE8" Name="陶瓷" Hot="True" Fid="40B777" Sid="EFF40A"/>
<Sort Depth="3" ID="8E9448" Name="砂浆" Hot="True" Fid="40B777" Sid="EFF40A"/>
</Sort>
<Sort Depth="2" ID="5DDFC7" Name="管件管材" Hot="True" Fid="40B777">
<Sort Depth="3" ID="3230B1" Name="建筑、建材类管材" Hot="True" Fid="40B777" Sid="5DDFC7"/>
<Sort Depth="3" ID="9135EE" Name="建筑、建材类管件" Hot="True" Fid="40B777" Sid="5DDFC7"/>
</Sort>
<Sort Depth="2" ID="4CAEA3" Name="建筑装潢工程承包" Hot="True" Fid="40B777">
<Sort Depth="3" ID="16C636" Name="工程规划" Hot="True" Fid="40B777" Sid="4CAEA3"/>
<Sort Depth="3" ID="FBB205" Name="其他工程承包" Hot="True" Fid="40B777" Sid="4CAEA3"/>
<Sort Depth="3" ID="93D836" Name="工程监理" Hot="True" Fid="40B777" Sid="4CAEA3"/>
<Sort Depth="3" ID="AD32D1" Name="工程施工" Hot="True" Fid="40B777" Sid="4CAEA3"/>
<Sort Depth="3" ID="EEAC6D" Name="绿化工程" Hot="True" Fid="40B777" Sid="4CAEA3"/>
<Sort Depth="3" ID="3B0E2E" Name="建筑图纸、模型设计" Hot="True" Fid="40B777" Sid="4CAEA3"/>
<Sort Depth="3" ID="82D45C" Name="装潢设计" Hot="True" Fid="40B777" Sid="4CAEA3"/>
</Sort>
<Sort Depth="2" ID="227D81" Name="装饰材料" Hot="True" Fid="40B777">
<Sort Depth="3" ID="DDE396" Name="建筑玻璃" Hot="True" Fid="40B777" Sid="227D81"/>
<Sort Depth="3" ID="A00E90" Name="建筑陶瓷" Hot="True" Fid="40B777" Sid="227D81"/>
<Sort Depth="3" ID="B110F1" Name="窗帘" Hot="True" Fid="40B777" Sid="227D81"/>
<Sort Depth="3" ID="BC4CC6" Name="建筑用粘合剂" Hot="True" Fid="40B777" Sid="227D81"/>
<Sort Depth="3" ID="9D57D6" Name="地毯" Hot="True" Fid="40B777" Sid="227D81"/>
<Sort Depth="3" ID="9EC553" Name="建筑涂料" Hot="True" Fid="40B777" Sid="227D81"/>
<Sort Depth="3" ID="955217" Name="壁纸、壁布" Hot="True" Fid="40B777" Sid="227D81"/>
<Sort Depth="3" ID="4D87E3" Name="装饰线板" Hot="True" Fid="40B777" Sid="227D81"/>
<Sort Depth="3" ID="B56B5A" Name="地板" Hot="True" Fid="40B777" Sid="227D81"/>
<Sort Depth="3" ID="B22DDD" Name="木质材料" Hot="True" Fid="40B777" Sid="227D81"/>
</Sort>
<Sort Depth="2" ID="9CB43B" Name="建筑、建材机械及用具" Hot="True" Fid="40B777">
<Sort Depth="3" ID="D03661" Name="工程与建筑机械" Hot="True" Fid="40B777" Sid="9CB43B"/>
<Sort Depth="3" ID="059B90" Name="陶瓷生产加工机械" Hot="True" Fid="40B777" Sid="9CB43B"/>
<Sort Depth="3" ID="D259A2" Name="作业保护" Hot="True" Fid="40B777" Sid="9CB43B"/>
<Sort Depth="3" ID="367DC5" Name="二手建材加工设备" Hot="True" Fid="40B777" Sid="9CB43B"/>
<Sort Depth="3" ID="F26510" Name="建材生产加工机械" Hot="True" Fid="40B777" Sid="9CB43B"/>
<Sort Depth="3" ID="DC50A8" Name="匠作工具" Hot="True" Fid="40B777" Sid="9CB43B"/>
<Sort Depth="3" ID="956636" Name="其他未分类" Hot="True" Fid="40B777" Sid="9CB43B"/>
<Sort Depth="3" ID="4C0F5D" Name="超市购物车" Hot="True" Fid="40B777" Sid="9CB43B"/>
</Sort>
<Sort Depth="2" ID="5D1AC6" Name="建筑配套设施及其他" Hot="True" Fid="40B777">
<Sort Depth="3" ID="F68381" Name="管道系统" Hot="True" Fid="40B777" Sid="5D1AC6"/>
<Sort Depth="3" ID="3AEC55" Name="不动产" Hot="True" Fid="40B777" Sid="5D1AC6"/>
<Sort Depth="3" ID="AAE44F" Name="活动房" Hot="True" Fid="40B777" Sid="5D1AC6"/>
<Sort Depth="3" ID="401211" Name="室内照明灯具" Hot="True" Fid="40B777" Sid="5D1AC6"/>
<Sort Depth="3" ID="3E0166" Name="信报箱" Hot="True" Fid="40B777" Sid="5D1AC6"/>
<Sort Depth="3" ID="505C7F" Name="楼宇设施" Hot="True" Fid="40B777" Sid="5D1AC6"/>
</Sort>
</Sort>
</root>
xml
xslt
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<H1>学生个人信息</H1>
<table width="200" border="1">
<tr>
<td>姓名</td>
<td>性别</td>
<td>生日</td>
<td>成绩</td>
<td>技能</td>
</tr>
<xsl:for-each select="root/Sort">
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="sex"/></td>
<td><xsl:value-of select="birthday"/></td>
<td><xsl:value-of select="score"/></td>
<td><xsl:value-of select="skill"/></td>
</tr>
</xsl:for-each>
<xsl:value-of select="/root/Sort"/>----<xsl:value-of select="/root/ParentID"/>----<xsl:value-of select="/root/ParentID/@ID"/>---
<xsl:apply-templates select="/root/ParentID"></xsl:apply-templates>
</table>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
<xsl:value-of select="/root/Sort/@ID"></xsl:value-of>