|
Subject: Re: none From: Henry Thompson <ht@xxxxxxxxxxxxxxx> Date: 17 Dec 1997 10:22:31 +0000 |
LINARESA@xxxxxxxxxxxx (LINARESA) writes:
> (element TEXT
> (if (string=? (attribute-string "TYPE" (parent (current-node))) "LIST:NONE")
> (make paragraph if it equals, increase start indentation
> start-indent: 20pt
> (process-children)
> )
> (process-children) else just output as usual
> )
> )
>
> Jade is giving me error mesages when I run it:
> 1st argument for primitive "string=?" of wrong type: "#f" not a string
You have to use 'equal?' in these circumstances. If ther IS no TYPE
attribute on the node involved, attribute-string returns #f. Since
this isn't a string, string=? complains.
ht
--
Henry S. Thompson, Human Communication Research Centre, University of Edinburgh
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@xxxxxxxxxxxxxxx
URL: http://www.cogsci.ed.ac.uk/~ht/
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [no subject], LINARESA | Thread | Robust DSSSL implementations., Ben Trafford |
| Re: jade with multiple input files?, W. Eliot Kimber | Date | Re: IDREFS with jade, Norman Walsh |
| Month |