|
Subject: starts-row? attribute in make table-cell From: "James.W Wilson" <James.W.Wilson@xxxxxxxxxxxxx> Date: Tue, 23 Dec 1997 11:39:00 -0600 |
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: DSSSL deserted - XSL Mailing Li, Jon Bosak | Thread | Re: starts-row? attribute in make t, Paul Prescod |
| DSSSL deserted - XSL Mailing List ?, Antoine Perier | Date | jade/docbook/norm walsh's styleshee, Thomas G. Lockhart |
| Month |