[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: rendering of tables

On Fri, Oct 27, 2000 at 01:49:02PM -0100, Werner Heuser wrote:
> On Fri, Oct 27, 2000 at 10:26:54AM +0200, Denis Barbier wrote:
> ...
> > Hi Werner,
> > 
> > i am surprised this has never been requested before, it looks quite
> > natural. The <xtable> tag is just a wrapper for freetable (formerly
> > wwwtable), so the best solution is to request this feature to the
> > freetable maintainer (i'll do so).  Meantime you may try this trick:
> ...
> Hi Denis,
> feels natural to me, too. And your appreciation of this
> idea feels good :) Anyway I will try your trick and I prefer,
> when you ask the freetable maintainer.

Hi again,

I believe that with this example and wml_macros(7), you have all the
material you need ;o)

<define-tag tablebody>
... table content here ...
  my $tablebody;
  <perl:assign $tablebody>
       #   Remove first column
       (*,1) REMOVE_THIS
       #   and first row
       (1,*) REMOVE_THIS
  #   Remove unwanted cells
  $tablebody =~ s|<(t[hd]) [^>]*REMOVE_THIS.*?</\1>||g;
  #   Remove empty rows
  $tablebody =~ s|<tr>\s*</tr>||g;
  <perl:print: $tablebody>

Denis Barbier
WML Maintainer
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com