|
Subject: Re: Finding the root element From: Norman Walsh <ndw@xxxxxxxxxx> Date: Thu, 29 Oct 1998 12:48:41 -0500 |
| Actually, undocumented feature of Jade is that (current-node) does in fact
| return the root inside a root rule. So the following works:
|
| (root
| (literal
| (debug (node-property 'gi
| (node-property 'document-element (current-node))))))
Right you are. Thanks, Henry. I swear I got an error once
about current-node being undefined in root, which is why I've
lept through all sorts of hurdles to get around the problem.
I must have misinterpreted an error message...
Cheers,
norm
--
Norman Walsh <ndw@xxxxxxxxxx> | Everything the same; everything
http://nwalsh.com/ | distinct.
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Finding the root element, W. Eliot Kimber | Thread | RE: Finding the root element, Reynolds, Gregg |
| Re: Finding the root element, Henry S. Thompson | Date | Re: Finding the root element, W. Eliot Kimber |
| Month |