首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

请xslt高手帮忙, 怎么实现单元格合并? 急 @!

2012-02-13 
请xslt高手帮忙, 如何实现单元格合并?? 急 @!!?xmlversion 1.0 encoding GB2312 ?KrmXmlTableD

请xslt高手帮忙, 如何实现单元格合并?? 急 @!!
<?xml   version= "1.0 "   encoding= "GB2312 "?>
<KrmXml>
<Table   DefaultColumnWidth= "78 "   DefaultRowHeight= "18 "   ExpandedColumnCount= "19 "   ExpandedRowCount= "21 "   IsPrintBeginRow= "1 "   dmOrientation= "0 ">
<Row   Height= "50 ">
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   MergeAcross= "18 "   MergeDown= "1 "   Data= "表三 "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
</Row>
<Row>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   MergeAcross= "3 "   MergeDown= "1 "   Data= "第Ⅲ部分 "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>


<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   MergeAcross= "3 "   MergeDown= "1 "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
</Row>
<Row>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= "10 "/>
<Cell   DataType= "4 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "4 "   IsMoney= "False "   Type= "String "   Data= "1 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "1.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "False "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>


<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "False "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
</Row>
<Row>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   MergeAcross= "2 "   MergeDown= "1 "   Data= "合计 "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "False "   Type= "String "   Data= " "/>
<Cell   DataType= "0 "   IsMoney= "True "   Type= "Number "   Data= " "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "False "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "False "   Type= "Number "   Data= "0.0 "/>
<Cell   DataType= "4 "   IsMoney= "True "   Type= "Number "   Data= "0.0 "/>
</Row>
</Table>
</KrmXml>


以上为表格的xml,其中 <Cell> 的MergeAcross属性为合并单元格,但此处合并后的单元格依然存在,   现在需要用   xslt   转换为   html   ,   但html中被合并的单元格不应该存在,请问各位高手有什么好的实现方法??

[解决办法]
合并列?lz想怎么实现呢?用xslt转换?
[解决办法]
找了个类似的,你看看吧。
http://bbs.51js.com/archiver/tid-8877.html

热点排行