|
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE:Color and font size of cells w, Jordi Mulet | Thread | Re: Color and font size of cells , Norman Walsh |
| Convert DTD to IDL ?, linas | Date | RE: Convert DTD to IDL ?, Frank A. Christoph |
| Month |