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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Getting the contents of an elem, Chris Maden | Thread | Re: Getting the contents of an elem, Russell Steven Shawn |
Re: Getting the contents of an elem, Chris Maden | Date | Re: Getting the contents of an elem, Russell Steven Shawn |
Month |