Re: Color and font size of cells within a table

Subject: Re: Color and font size of cells within a table
From: Chris Maden <crism@xxxxxxx>
Date: Fri, 13 Mar 1998 10:42:11 -0500
[Jordi Mulet]
> When we execute Jade we obtain the message:
> conveni3.dsl:114:16:E: unexpected token "$pi-font-size$"

Your (let) syntax is wrong.  These definitions are right; note

(let ((variable value)
      (variable value))
  function...)

syntax:

> ;***************************************************************
> ; These are the definitions of  pi-font-size and pi-font-color
> ;***************************************************************
> (define ($pi-font-size$)
>   (let ((fontsize (inherited-pi-value (current-node) "font-size")))
>       (if fontsize
>       fontsize
>       #f)))
> (define ($pi-font-color$)
>   (let ((fontcolor (inherited-pi-value (current-node) "font-color")))
>       (if fontcolor
>       fontcolor
>       #f)))

This syntax is wrong:

> ;*****************************************************
> ; lets of fontsize and fontcolor
> ;*****************************************************
>  (let fontsize ($pi-font-size$) )
>    (let fontcolor($pi-font-color$)  )
>  (let ((%factor% (if %verbatim-size-factor%
>         %verbatim-size-factor%
>                       1.0) ))

(let foo (...)) defines a named-let called foo; DSSSL requires
variable-value pairs after the named-let's name.  What you want is
(let ((fontsize ($pi-font-size$)) (fontcolor ($pi-font-color$))
(%factor% (if ...))) ...)

HTH,
Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


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


Current Thread
  • RE:Color and font size of cells within a table
    • Jordi Mulet - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id FAA07950Fri, 13 Mar 1998 05:06:29 -0500 (EST)
      • Chris Maden - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA11428Fri, 13 Mar 1998 10:38:36 -0500 (EST) <=
      • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id PAA09833Tue, 17 Mar 1998 15:06:27 -0500 (EST)