Subject: Re: [xsl] converting empty nodes to col/rowspan values From: Steve <subsume@xxxxxxxxx> Date: Mon, 14 Aug 2006 10:35:38 -0400 |
Hmm... sorry to be daft but could you point out the difference between expected output and actual output?
<table> <row> <cell>All</cell> <cell></cell> <cell></cell> </row> <row> <cell>A</cell> <cell>All</cell> <cell></cell> </row> <row> <cell></cell> <cell>A1</cell> <cell>All</cell> </row> <row> <cell></cell> <cell></cell> <cell>A11</cell> </row> <row> <cell></cell> <cell></cell> <cell>A12</cell> </row> <row> <cell></cell> <cell>A2</cell> <cell>All</cell> </row> <row> <cell></cell> <cell></cell> <cell>A21</cell> </row> <row> <cell></cell> <cell></cell> <cell>A22</cell> </row>
<row> <cell>B</cell> <cell>All</cell> <cell></cell> </row> <row> <cell></cell> <cell>B1</cell> <cell>All</cell> </row> <row> <cell></cell> <cell></cell> <cell>B11</cell> </row> <row> <cell></cell> <cell></cell> <cell>B12</cell> </row> <row> <cell></cell> <cell>B2</cell> <cell>All</cell> </row> <row> <cell></cell> <cell></cell> <cell>B21</cell> </row> <row> <cell></cell> <cell></cell> <cell>B22</cell> </row>
</table> * now i get :*
<table> <tr> <td colspan="3">All</td> </tr> <tr> <td rowspan="7">A</td> <td colspan="2">All</td> </tr> <tr> <td rowspan="3">A1</td> <td>All</td> </tr> <tr> <td>A11</td> </tr> <tr> <td>A12</td> </tr> <tr> <td rowspan="3">A2</td> <td>All</td> </tr> <tr> <td>A21</td> </tr> <tr> <td rowspan="2">A22</td> </tr> <tr> <td rowspan="7">B</td> <td colspan="2">All</td> </tr> <tr> <td rowspan="3">B1</td> <td>All</td> </tr> <tr> <td>B11</td> </tr> <tr> <td>B12</td> </tr> <tr> <td rowspan="3">B1</td> <td>All</td> </tr> <tr> <td>B21</td> </tr> <tr> <td rowspan="2">B22</td> </tr>
</table> *but must be: <*table> <tr> <td colspan="3">All</td> </tr> <tr> <td rowspan="7">A</td> <td colspan="2">All</td> </tr> <tr> <td rowspan="3">A1</td> <td>All</td> </tr> <tr> <td>A11</td> </tr> <tr> <td>A12</td> </tr> <tr> <td rowspan="3">A2</td> <td>All</td> </tr> <tr> <td>A21</td> </tr> <tr> <td>A22</td> </tr> <tr> <td rowspan="7">B</td> <td colspan="2">All</td> </tr> <tr> <td rowspan="3">B1</td> <td>All</td> </tr> <tr> <td>B11</td> </tr> <tr> <td>B12</td> </tr> <tr> <td rowspan="3">B1</td> <td>All</td> </tr> <tr> <td>B21</td> </tr> <tr> <td rowspan="2">B22</td> </tr>
</table>*
*
Steve wrote: > Could you please give us sample XML and desired output? > > -Steve > > On 8/14/06, KrasiG <krasig@xxxxxxxxx> wrote: >> Hi GURUs, >> I'm new in XML/XSL transformation and pleas some little help. >> >> In my case i must convert empty cell in table to colsap/rewspan and i >> found this: >> http://www.stylusstudio.com/xsllist/200404/post30380.html >> but i have some situation when must cancel span in some cell (my bi add >> some attribute) >> Can you give me some decision. >> >> Thanks and please excuse me for bad language
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] converting empty nodes to, KrasiG | Thread | Re: [xsl] converting empty nodes to, KrasiG |
Re: [xsl] converting empty nodes to, KrasiG | Date | [xsl] How do you remove namespace?, Arthur Maloney |
Month |