Re: [xsl] Table structure checking, how?

Subject: Re: [xsl] Table structure checking, how?
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 3 Mar 2016 08:54:25 -0000
Try calstable:check-normalized(), as seen in this example:
It is based on Andrew Welchbs table normalization.


On 03.03.2016 09:37, Michael MC<ller-Hillebrand mmh@xxxxxxxxx wrote:
Hi folks,

We came across a CALS table with a "missing" cell in the first row, like this:

<tgroup cols="2">
       <entry colname="col1" morerows="1"><p>Text</p></entry>
       <!-- MISSING second column cell -->
       <!-- skipped first cell because of morerows -->
       <entry colname="col2"><p>Text</p></entry>

This table is technically valid, but creates problems when processed further.

Are you aware of a tool or method to check that the table data is correct regarding any available colspan or rowspan definitions? I fear there is no way to have that checked using just e.g. XPath.

My next step would be to look at Andrew Welch's table normalizer, which I have used in a number of projects. It is currently based on the assumption that the first row of a table is complete (after expanding any colspan definitions).

Any hints are very welcome,

- Michael

-- Gerrit Imsieke GeschC$ftsfC<hrer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke@xxxxxxxxx,

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

GeschC$ftsfC<hrer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard VC6ckler

Current Thread