Re: call of non-function object

Subject: Re: call of non-function object
From: Toby Speight <Toby.Speight@xxxxxxxxxxxxxx>
Date: 24 Jul 1998 10:09:01 +0100
shennessy> shennessy <URL:mailto:shennessy@xxxxxxxxxx>

=> In article <9807239012.AA901218164@xxxxxxxxxxxxxxxx>, shennessy
=> wrote:

shennessy> Please could someone offer an explanation of the problem
shennessy> that Jade is reporting?
shennessy> jade:sgml2odsp.dsl:1004:69:E: call of non-function object "#<unknown object 16869264>"

[It would be nice if you showed which line is 1004 in your source]

shennessy>   (if ( string=? ( (attribute-string "ID"
                            ^^^
shennessy>   ( (select-elements (children ( enl ) ) (normalize
             ^^^
shennessy>   "graphic") ) ) ) ) %test-value%)


These forms look suspicious.  You're calling a function, and then
calling its result as a function.  But attribute-string and
select-elements don't return functions.  I think you want

shennessy>   (if (string=?
shennessy>        (attribute-string "ID"
shennessy>            (select-elements (children (enl))
shennessy>                             (normalize "graphic")))
shennessy>         %test-value%)
shennessy>       ...
shennessy>     ...)



shennessy> ------=_NextPart_000_0018_01BDB62C.359CB2C0
shennessy> Content-Type: text/html;
shennessy> 	charset="iso-8859-1"
shennessy> Content-Transfer-Encoding: quoted-printable

Please don't do this.  It doesn't add anything, it wastes bandwidth,
and I'd be surprised if the archiver likes it.

-- 


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


Current Thread
  • call of non-function object
    • shennessy - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA17796Thu, 23 Jul 1998 14:29:14 -0400 (EDT)
      • Toby Speight - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id FAA09993Fri, 24 Jul 1998 05:10:43 -0400 (EDT) <=
      • <Possible follow-ups>
      • Oisin McGuinness - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id JAA14828Fri, 24 Jul 1998 09:15:02 -0400 (EDT)
      • shennessy - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA23964Fri, 24 Jul 1998 14:29:16 -0400 (EDT)
      • shennessy - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA24473Fri, 24 Jul 1998 14:40:56 -0400 (EDT)