Re: conditionaly setting characteristics

Subject: Re: conditionaly setting characteristics
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Sat, 21 Feb 1998 13:16:18 -0600
At 01:03 PM 2/21/98 -0600, Charlie & Barbara Bozeman wrote:
>Is there a method to construct flow objects and conditionally set their
>characteristics depending on the value or presence of attributes? An
>example of what I want to do is:
>
>(element cell
>  (let ((col-num attribute-string "col-num")
>        (align attribute-string "align"))
>     (make table-cell
>           (if col-num
>               column-number:	col-num)
>           (if align
>               cell-row-alignment: align))))

You have to put the condition either one level up (before the make
function) or one level down (as the specification of the characteristic
value).

For this reason, tables tend to result in very hairy functions (the code to
do CALS tables properly gives me the willies).

Cheers,

E.
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
Highland Consulting, a division of ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 95202.  214.953.0004
www.isogen.com
</Address>


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • conditionaly setting characteristics
    • Charlie & Barbara Bozeman - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id OAA06929Sat, 21 Feb 1998 14:05:26 -0500 (EST)
      • Lassi A. Tuura - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id HAA21007Sun, 22 Feb 1998 07:35:04 -0500 (EST)
      • Richard Light - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id FAA15131Mon, 23 Feb 1998 05:41:42 -0500 (EST)
        • Chris Maden - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id NAA12108Tue, 24 Feb 1998 13:31:12 -0500 (EST)
      • <Possible follow-ups>
      • W. Eliot Kimber - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id OAA07168Sat, 21 Feb 1998 14:21:46 -0500 (EST) <=