思归大哥,请进,用xsl将xml转换网页
对xsl一点也不熟悉,看了半天也不太清楚。请思归帮忙,我的xml文件如下:
- <root>
- <pagesetting>
<LANDSCAPE>true</LANDSCAPE>
<paperkind>A4</paperkind>
<paperwidth>210</paperwidth>
<paperheight>297</paperheight>
<pageleft>0</pageleft>
<pageright>0</pageright>
<pagetop>0</pagetop>
<pagebottom>0</pagebottom>
</pagesetting>
- <reporttable>
- <table x="10" y="50" border="1" bordercolor="black" maxlines="30">
- <tablehead>
- <tr height="20">
<td width="800" top="true" bottom="false" left="true" right="false" align="right" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white">公司04证</td>
</tr>
- <tr height="50">
<td width="800" top="false" bottom="false" left="true" right="false" align="center" fontname="宋体" fontsize="15" fontcolor="Black" b="true" i="false" u="true" bgcolor="white">不符合项处理单</td>
</tr>
</tablehead>
- <tablebody>
- <tr height="16">
<td width="800" top="false" bottom="false" left="true" right="false" align="left" fontname="宋体" fontsize="9" fontcolor="Black" b="false" i="false" u="false" bgcolor="White">编号</td>
</tr>
- <tr height="16">
<td width="300" top="true" bottom="true" left="true" right="true" align="center" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white">订货代号</td>
<td width="100" top="true" bottom="true" left="true" right="true" align="center" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white">图号</td>
<td width="180" top="true" bottom="true" left="true" right="true" align="center" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white">名称</td>
<td width="70" top="true" bottom="true" left="true" right="true" align="center" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white">材质</td>
<td width="150" top="true" bottom="true" left="true" right="true" align="center" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white">炉号</td>
</tr>
......
</tablebody>
- <tablefoot>
- <tr height="16">
<td width="80" top="true" bottom="true" left="true" right="true" align="left" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white">打印用户</td>
<td width="120" top="true" bottom="true" left="true" right="true" align="left" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white" />
<td width="80" top="true" bottom="true" left="true" right="true" align="left" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white">打印时间</td>
<td width="120" top="true" bottom="true" left="true" right="true" align="left" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white" />
<td width="400" top="true" bottom="true" left="true" right="true" align="left" fontname="宋体" fontsize="9" fontcolor="Black" b="true" i="false" u="false" bgcolor="white" />
</tr>
</tablefoot>
</table>
</reporttable>
</root>
请问怎么样写xsl,将下面的表显示出来,谢谢您的回答!!