|
Subject: node->string From: Alexander Kjeldaas <astor@xxxxxxxxxxx> Date: Sat, 28 Nov 1998 00:25:00 +0100 |
Hi,
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%
url))
(empty-sosofo))))
------
<source>
<url>&gnumirror;bash-%{version}.tar.gz</url>
</source>
I'd like the text of the url-node with the entity gnumirror expanded.
URL is PCDATA.
(Btw, I went through most of the 'node-properties' listed in the
jade-source. None of the interesting ones worked except for content)
astor
--
Alexander Kjeldaas, Guardian Networks AS, Trondheim, Norway
http://www.guardian.no/
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Help - how do I pass tags through J, Mark Burton | Thread | Re: node->string, Norman Walsh |
| Help - how do I pass tags through J, Mark Burton | Date | Re: node->string, Norman Walsh |
| Month |