RE: SOLUTION FOR : How can I add a new children in a node??

Subject: RE: SOLUTION FOR : How can I add a new children in a node??
From: "Frank A. Christoph" <christo@xxxxxxxxxxxxxxxxxx>
Date: Thu, 30 Sep 1999 18:29:59 +0900
> The solution is:
> 	(element FATHER
> 		(make element gi: FATHER)
> 			(make element gi: "SOON-NEW" (literal "New") )
> 			(process-matching-children '())
> 		)
> 	)

You could also write (process-children), or just (pc) if you define it:

  (define (pc) (process-children))

which is what I do.

BTW, does this code really work? I think the value specified for gi: needs
to be a string (as in the second instance above), not an identifier, i.e.,
`gi: "FATHER"' not `gi: FATHER'. The latter would use the value of a
variable named FATHER rather than the string itself.

--FC

P.S. I think you mean "son" rather than "soon".


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


Current Thread