[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: rendering of tables
- From: Denis Barbier <nospam@thanx>
- Date: Fri, 27 Oct 2000 23:48:17 +0200
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 ...
</define-tag>
<perl>
{
my $tablebody;
<perl:assign $tablebody>
<xtable>
# Remove first column
(*,1) REMOVE_THIS
# and first row
(1,*) REMOVE_THIS
<tablebody>
</xtable>
</perl:assign>
# Remove unwanted cells
$tablebody =~ s|<(t[hd]) [^>]*REMOVE_THIS.*?</\1>||g;
# Remove empty rows
$tablebody =~ s|<tr>\s*</tr>||g;
<perl:print: $tablebody>
}
</perl>
--
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