求解XSLT格式化问题!
XML文档格式如下:
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="syn_test.xsl"?>
<Servers Update='9/6/2005 11:37:26 AM'>
<Server Name="Newsql">
<Db Name="Abs">
<Article Name="InventoryTransaction">
<Chain Name="Abs - inventoryTransaction">A</Chain>
<Chain Name="Abs - inventoryTransaction">B</Chain>
<Chain Name="Abs - inventoryTransaction">C</Chain>
<Chain Name="Rp_AbsInventoryTransaction_Trn">D</Chain>
</Article>
</Db>
<Db Name="act">
<Article Name="ABS_Dep">
<Chain Name="act">E</Chain>
<Chain Name="act">F</Chain>
</Article>
<Article Name="ApCheck">
<Chain Name="act">G</Chain>
<Chain Name="act-datawarehouse">H</Chain>
<Chain Name="act">I</Chain>
</Article>
</Db>
</Server>
<Servers>
要求将上述XML文档格式化成以下格式:
-------------------------------------------------------------------------------------
| Server | DB | TableName | Chain |
-------------------------------------------------------------------------------------
| Newsql | Abs | InventoryTransaction | A |
| | | |-------------------------------|
| | | | B |
| | | |-------------------------------|
| | | | C |
| | | |-------------------------------|
| | | | D |
| |------------|---------------------------|-------------------------------|
| | act | ABS_Dep | E |
| | | |-------------------------------|
| | | | F |
| | |---------------------------|-------------------------------|
| | | ApCheck | G |
| | | |-------------------------------|
| | | | H |
| | | |-------------------------------|
| | | | I |
|-----------------------------------------------------------------------------------|
求XSL文件源代码及详细思路,小弟实在写不出了,不得已出此下策,感谢各位了!