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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: conditionaly setting characteri, Chris Maden | Thread | Java pretty printing in/with DocBoo, Christian Leutloff |
conditionaly setting characteristic, Charlie & Barbara Bo | Date | Re: What best graphics format for R, Christian Leutloff |
Month |