Subject: Re: starts-row? attribute in make table-cell From: James Clark <jjc@xxxxxxxxxx> Date: Thu, 25 Dec 1997 11:51:01 +0700 |
That's a bug. The fix will be in the next release. James.W Wilson wrote: > > > I'm having an odd problem with jade. It seems that the table-cell > class is ignoring the starts-row? attribute if it is specified using > an expression rather than explicitly as #t or #f. That is, if I do > something like > > <!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style > Sheet//EN"> > > (element TABLE > (make table > (make table-column > column-number: 1 > ) > (make table-column > column-number: 2 > ) > (process-children) > ) > ) > > (element COL > (let > ( > (num (string->number (attribute-string "num"))) > ) > (make table-cell > starts-row?: (if (= num 1) #t #f) > (process-children) > ) > ) > ) > > on input of > > <!DOCTYPE TABLE [ > <!ELEMENT table - o (col+)> > <!ELEMENT col - o (#PCDATA)> > <!ATTLIST col num NUMBER #REQUIRED> > ]> > <table> > <col num=1>bah! <col num=2>feh! > <col num=1>sup <col num=2>sure > </table> > > I get no row breaks where starts-row? is evaluating to #t. If I change > the code to read > > (make table-cell > starts-row?: #t > (process-children) > ) > I get row breaks for every cell, as expected. Qua? > > James DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: starts-row? attribute in make t, Paul Prescod | Thread | jade/docbook/norm walsh's styleshee, Thomas G. Lockhart |
Re: Keep-together tables and empty , James Clark | Date | Re: Jade's RtfFOTBuilder, James Clark |
Month |