Tables with Split Cells

dgallo
Posts: 89
Joined: Tue Mar 31, 2015 10:43 pm

Tables with Split Cells

Post by dgallo » Thu Apr 06, 2017 5:40 pm

I was wondering if there is a way to warp all table data that should visually appears as 1 row in the html output with a class.

To further explain:

We have tables where some cells in a row are split, therefore causing additional row tags, even though visually we want all of this information, including the split cells to appear as 1 row in the html output. See example below with comments.

Code: Select all

<table frame="none" id="test_topic_table_wbw_d2c_mz">
<tgroup cols="4">
<colspec colname="c1" colnum="1" colwidth="1.0*"/>
<colspec colname="c2" colnum="2" colwidth="1.0*"/>
<colspec colname="c3" colnum="3" colwidth="1.0*"/>
<colspec colname="newCol4" colnum="4" colwidth="1*"/>
<thead>
<row><!--start of heading row-->
<entry>1</entry>
<entry>2</entry>
<entry namest="c3" nameend="newCol4">3</entry>
</row>
</thead>
<tbody>
<row><!--start of row 1-->
<entry morerows="1">row 1, column 1</entry>
<entry morerows="1">row 1, column 2</entry>
<entry>row 1, column 3/split</entry>
<entry>row 1, column 3/split</entry>
</row>
<row>
<entry>row 1, column 3/split</entry>
<entry>row 1, column 3/split</entry>
</row><!--can I wrap everything from the start of row 1 until this comment with a class because I want it to visually appear as 1 row-->
<row><!--start of row 2-->
<entry>row 2, column 1</entry>
<entry>row 2, column 2</entry>
<entry namest="c3" nameend="newCol4">row 2, column 3</entry>
</row>
</tbody>
</tgroup>
</table>

Radu
Posts: 6388
Joined: Fri Jul 09, 2004 5:18 pm

Re: Tables with Split Cells

Post by Radu » Fri Apr 07, 2017 4:33 pm

Hi,

I don't see a good solution for this. Maybe you could set on all those rows some special custom @outputclass attribute values and pick them up in the XSLT.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply