Thank you Eliot. I will check out this code.
On Mon, Oct 5, 2015 at 1:06 PM, Eliot Kimber ekimber(_at_)contrext(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
I have to solve a similar problem in going from CALS tables to InDesign
tables.
To solve it I generate an intermediate view of the table with all cells
made explicit. I then use that to generate the correct InDesign table
structure.
The code is part of the DITA for Publishers DITA-to-InDesign framework,
which you can find here:
https://github.com/dita4publishers/org.dita4publishers.dita2indesign
The table processing code is:
https://github.com/dita4publishers/org.dita4publishers.dita2indesign/blob/m
aster/xsl/calstbl2IcmlImpl.xsl
The mode "make matrix table" is the mode that generates the matrix view of
the CALS table. You might find that useful for your task.
Cheers,
Eliot
----
Eliot Kimber, Owner
Contrext, LLC
http://contrext.com
On 10/5/15, 10:39 AM, "a kusa akusa8(_at_)gmail(_dot_)com"
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
Hello:
It has been a while since I worked on XSLT. But I have a current issue
that I need to solve with xslt.
I have a CALS table that has @morerows. I have to generate a table
that does not have a rowspan attribute, and generate cells according
to the value of @morerows.
So, my input XML looks like this:
<table>
<tgroup>
<tbody>
<row><entry morerows="2">test 1</entry>
<entry morerows="1">test 2</entry>
<entry morerows="0">test 3</entry>
</row>
<row><entry morerows="0">test 4</entry>
<entry morerows="1">test 5</entry>
<entry morerows="0">test 6</entry>
</row>
</tbody>
</tgroup>
</table>
How do I generate rows/cells based on morerows in xslt?
Any tips is appreciated.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--