Subject: node->string
From: Alexander Kjeldaas <astor@xxxxxxxxxxx>
Date: Sat, 28 Nov 1998 00:25:00 +0100

I guess this is a really newbie question, sorry for that, but I
couldn't figure it out even after looking through the archives.  I
need to get the contents of a tag as a string.  I've noticed the
following construct in html/dbnavig.dsl:

   (> (string-length (node-property 'system-data 
				  (node-list-first nl))) 
      (string-length piname))

so I thought 'system-data would be the thing for me.  However, jade
doesn't seem to aggree with me:

jade:etc/getpackages.dsl:32:14:E: no value for node property "system-data"

I'm trying to do something very simple like the following:

(element (SOURCE URL)
	 (let ((url (node-property 'system-data (current-node))))
	   (if (or (string=? "http" (substring url 0 4))
		   (string=? "ftp" (substring url 0 3)))
	       (make sequence
		     (literal %newline%


I'd like the text of the url-node with the entity gnumirror expanded.

(Btw, I went through most of the 'node-properties' listed in the
jade-source.  None of the interesting ones worked except for content)


 Alexander Kjeldaas, Guardian Networks AS, Trondheim, Norway

 DSSSList info and archive:

Current Thread
  • node->string
    • Alexander Kjeldaas - Fri, 27 Nov 1998 18:44:44 -0500 (EST) <=