Re: none

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
  • [no subject]
    • LINARESA - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id RAA09668Tue, 16 Dec 1997 17:52:05 -0500 (EST)
      • Henry Thompson - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id FAA19157Wed, 17 Dec 1997 05:23:14 -0500 (EST) <=