Re: Getting the contents of an element

Subject: Re: Getting the contents of an element
From: Georg Rehm <georg@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Apr 1998 16:59:05 +0200 (MEST)
Hi there,

> > (define (get-contents gi)
> >         (process-node-list 
> >                 (node-list-first 
> >                         (select-elements 
> >                                 (descendants (ancestor *top-gi*)) gi))))
 
> (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.

Ok, this makes sense.
  
> Instead of (ancestor *top-gi*), try (grove-root (current-node)).

When I first tried this, jade complained about:
jade:text.dsl:78:18:E: reference to undefined variable "grove-root"
jade:text.dsl:92:5:I: called from here

After a look into ftp://ftp.ornl.gov/pub/sgml/WG8/DSSSL/digest.htm,
I learned that jade doesn't implement (grove-root nl), so I inserted
the suggested definition for this function into my script as well as 
the definition for (node-list-property prop nl). The problem is that
still nothing happens: <TITLE> of the resulting HTML document has no
content. :-/ 

Greetings,
	Georg
-- 
Georg Rehm                                     georg@xxxxxxxxxxxxxxxxxxxxxxx
Institute for Semantic Information-Processing, University of Osnabrueck, FRG


 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)