Re: Getting the contents of an element

Subject: Re: Getting the contents of an element
From: "Russell Steven Shawn O'Connor" <roconnor@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Apr 1998 11:05:35 -0400 (EDT)
On Tue, 21 Apr 1998, Chris Maden wrote:

> (get-contents) looks for an ancestor of the current node called
> "TEXT".  From <text> itself, you won't find any such ancestor, and so
> this all falls apart.
> 
> Instead of (ancestor *top-gi*), try (grove-root (current-node)).

Shouldn't (tree-root) be used instead to get the root of the content-tree.
Or in the case of using Jade.

(node-property 'tree-root (current-node))

-- 
Russell O'Connor                           roconnor@xxxxxxxxxxxx
    <URL:http://www.undergrad.math.uwaterloo.ca/%7Eroconnor/>
"And truth irreversibly destroys the meaning of its own message"
-- Anindita Dutta, "The Paradox of Truth, the Truth of Entropy"


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


Current Thread
  • Getting the contents of an element
    • Georg Rehm - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id CAA08461Tue, 21 Apr 1998 02:07:30 -0400 (EDT)
      • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id KAA19021Tue, 21 Apr 1998 10:41:41 -0400 (EDT)
        • Georg Rehm - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA19474Tue, 21 Apr 1998 11:02:33 -0400 (EDT)
        • Russell Steven Shawn O'Connor - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA19689Tue, 21 Apr 1998 11:08:35 -0400 (EDT) <=
      • <Possible follow-ups>
      • Reynolds, Gregg - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA21435Tue, 21 Apr 1998 12:19:38 -0400 (EDT)