call of non-function object

Subject: call of non-function object
From: shennessy@xxxxxxxxxx
Date: Thu, 23 Jul 98 11:22:42 -0800
------=_NextPart_000_0018_01BDB62C.359CB2C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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

Your humble newbie schemer.
Sean

<!--
;;[work in progress]
;; SGML Source Markup
;;
;;<ref-fig refid=3D"f-90e09903">
;;
;; XYWrite Result Markup..
;;
;;=AEX99=AF[Fig. 7]f-90e09903=AEX99/=AF
;;
;; find node with element (figure graphic) attribute "id"
;; to match element ref-fig attribute "refid"
;;=20
-->
(element REF-FIG
 (let (=20
   (atRefId (attribute-string "REFID" (current-node)))
  );eoletgroup

 (make paragraph
   (literal %gX99%)
   (literal "[")
   (literal (number->string($find-figure-graphic-with-id$ atRefId )))
   (literal "]")
   (literal atRefId)
   (literal %gX99C%)
   (literal %gNewLine%)
   (process-children)
 );eompara
 );eolet
)

<!--
;; Given the SGML markup.
;; <figure>
;; <graphic id=3D"f-93d00854">
;; <caption>naked picture of my cat</caption>
;; </figure>
;;
;; Visit each one of the "figure" element nodes
;; compare the attribute-string "ID" of the child "graphic" element
;; if match is found return element number of figure element.
-->
(define ($find-figure-graphic-with-id$ %test-value%)
 ;; build a list of nodes containing all the "figure" elements in the =
grove.
 ;; and iterate through each of the figure nodes.
 (let loop ( (enl ( select-elements ( ancestors (current-node) ) =
(normalize "figure") ) ) ) ;; not sure about this
  ;; compare each node in turn against the test value  THIS NEXT "IF" IS =
WHAT JADE DOES NOT LIKE..
  (if ( string=3D? ( (attribute-string "ID" ( (select-elements (children =
( enl ) ) (normalize "graphic") ) ) ) ) %test-value%)=20
   ($get-elem-num-str$ enl) ;;#t return this
   (loop (node-list-rest enl)) ;;#f
  );;eoif
 );;eoletloop
);;eodefine


<!--
;; uses element-number which returns occurrence of a gi in current =
node-list
-->
(define ($get-elem-num-str$ %this-node%)
 (number->string(element-number(%this-node%)))
)

//EOT


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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Please could someone offer an =
explanation of the=20
problem that Jade is reporting?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>jade:sgml2odsp.dsl:1004:69:E: call =
of=20
non-function object &quot;#&lt;unknown object =
16869264&gt;&quot;</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Your humble newbie =
schemer.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT =
size=3D2>Sean</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&lt;!--<BR>;;[work in =
progress]<BR>;; SGML=20
Source Markup<BR>;;<BR>;;&lt;ref-fig=20
refid=3D&quot;f-90e09903&quot;&gt;<BR>;;<BR>;; XYWrite Result=20
Markup..<BR>;;<BR>;;&reg;X99&macr;[Fig. =
7]f-90e09903&reg;X99/&macr;<BR>;;<BR>;;=20
find node with element (figure graphic) attribute &quot;id&quot;<BR>;; =
to match=20
element ref-fig attribute &quot;refid&quot;<BR>;; <BR>--&gt;<BR>(element =

REF-FIG<BR>&nbsp;(let ( <BR>&nbsp;&nbsp; (atRefId (attribute-string=20
&quot;REFID&quot; (current-node)))<BR>&nbsp; );eoletgroup</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;(make =
paragraph<BR>&nbsp;&nbsp; (literal=20
%gX99%)<BR>&nbsp;&nbsp; (literal &quot;[&quot;)<BR>&nbsp;&nbsp; (literal =

(number-&gt;string($find-figure-graphic-with-id$ atRefId =
)))<BR>&nbsp;&nbsp;=20
(literal &quot;]&quot;)<BR>&nbsp;&nbsp; (literal =
atRefId)<BR>&nbsp;&nbsp;=20
(literal %gX99C%)<BR>&nbsp;&nbsp; (literal %gNewLine%)<BR>&nbsp;&nbsp;=20
(process-children)<BR>&nbsp;);eompara<BR>&nbsp;);eolet<BR>)</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV>&lt;!--<BR>;; Given the SGML markup.<BR>;; &lt;figure&gt;<BR>;; =
&lt;graphic=20
id=3D&quot;f-93d00854&quot;&gt;<BR>;; &lt;caption&gt;naked picture of my =

cat&lt;/caption&gt;<BR>;; &lt;/figure&gt;<BR>;;<BR>;; Visit each one of =
the=20
&quot;figure&quot; element nodes<BR>;; compare the attribute-string=20
&quot;ID&quot; of the child &quot;graphic&quot; element<BR>;; if match =
is found=20
return element number of figure element.<BR>--&gt;<BR>(define=20
($find-figure-graphic-with-id$ %test-value%)<BR>&nbsp;;; build a list of =
nodes=20
containing all the &quot;figure&quot; elements in the grove.<BR>&nbsp;;; =
and=20
iterate through each of the figure nodes.<BR>&nbsp;(let loop ( (enl (=20
select-elements ( ancestors (current-node) ) (normalize =
&quot;figure&quot;) ) )=20
) ;; not sure about this</DIV>
<DIV>&nbsp; ;; compare each node in turn against the test value&nbsp; =
THIS NEXT=20
&quot;IF&quot; IS WHAT JADE DOES NOT LIKE..<BR>&nbsp; (if ( string=3D? ( =

(attribute-string &quot;ID&quot; ( (select-elements (children ( enl ) )=20
(normalize &quot;graphic&quot;) ) ) ) ) %test-value%) <BR>&nbsp;&nbsp;=20
($get-elem-num-str$ enl) ;;#t return this<BR>&nbsp;&nbsp; (loop =
(node-list-rest=20
enl)) ;;#f<BR>&nbsp; );;eoif<BR>&nbsp;);;eoletloop<BR>);;eodefine</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2><FONT color=3D#000000 =
size=3D2>&lt;!--<BR></FONT>;;=20
uses element-number which returns occurrence of a gi in current=20
node-list<BR>--&gt;<BR>(define ($get-elem-num-str$=20
%this-node%)<BR>&nbsp;(number-&gt;string(element-number(%this-node%)))<BR=
>)<BR></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2><A=20
href=3D"file://EOT">//EOT</A><BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0018_01BDB62C.359CB2C0--


Attachment: smime.p7s
Description: Binary data

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)