Re: [xsl] InDesign IDML table conversion

Subject: Re: [xsl] InDesign IDML table conversion
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 17 Aug 2012 11:51:24 -0400
Hi Ganesh,

On 8/17/2012 9:11 AM, Ganesh Babu N wrote:
I am trying to find out the number tds before the td[@morerows], so
that i can increase the cell count accordingly. But it is not giving
the exact number of tds. For the first set it should give 0 and 2 and
for the 2nd set it should give 3 . But it is giving 2 everywhere.
Please suggest me where I am going wrong.

Unfortunately, your question can't really be answered as given.


This is basically because CALS tables support several different ways of assigning cells to columns, and accordingly lets you design tables in which some of the cells are only implicit, as if to appear between consecutive cells assigned to non-consecutive columns. Combine with this the fact that cells in earlier rows can spill into a row by virtue of their @morerows assignment (as your example shows) and ... you begin to get the picture.

This means that you are confronted with the question of whether you have to support arbitrary CALS tables (any table that conforms to a CALS or OASIS spec, which you need to look at), or only a controlled subset, whose semantics you can specify fully.

If you need to do the first, you might look at the Docbook XSLT distribution, which has code supporting CALS tables.

But I'd recommend limiting the inputs to a subset of CALS if you can. For example, if you could arrange for all your column assignments to be given explicitly on every cell, this becomes significantly easier.

I'm sorry this isn't much help. :-(

Cheers anyhow,
Wendell

--
======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

Current Thread