Re: starts-row? attribute in make table-cell

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
  • starts-row? attribute in make table-cell
    • James.W Wilson - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id LAA11173Tue, 23 Dec 1997 11:37:06 -0500 (EST)
      • Paul Prescod - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id MAA12124Tue, 23 Dec 1997 12:52:34 -0500 (EST)
      • James Clark - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id AAA01797Thu, 25 Dec 1997 00:08:07 -0500 (EST) <=