[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: converting empty nodes to col/rowspan values

Subject: Re: converting empty nodes to col/rowspan values
From: Steve <subsume@xxxxxxxxx>
Date: Mon, 14 Aug 2006 10:35:38 -0400
td rowspan
Hmm... sorry to be daft but could you point out the difference between
expected output and actual output?

-Steve

On 8/14/06, KrasiG <krasig@xxxxxxxxx> wrote:
<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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.