Re: Finding the root element

Subject: Re: Finding the root element
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: Thu, 29 Oct 1998 08:37:07 -0500
/ "W. Eliot Kimber" <eliot@xxxxxxxxxxxxxx> was heard to say:
| At 07:38 AM 10/29/98 -0500, Norman Walsh wrote:
| >Apologies if I asked this once before...
| >
| >Is it possible to find the node of the document element outside
| >the context of another element?  Specifically, can I find it in
| >a function called from (root)?
| This should work from any node in the grove:
| (define (docelem node)
|   (node-propety 'document-element 
|     (node-property 'grove-root node)))

Yes, but in (root ...) there's no (current-node), so how do I get 'node'?

Norman Walsh <ndw@xxxxxxxxxx>      | Clones are people two.                 | 

 DSSSList info and archive:

Current Thread