|
Subject: RE: sgml-parse From: Pieter Rijken <pieter.rijken@xxxxxx> Date: Wed, 20 Oct 1999 09:29:38 +0200 |
Hi Brandon,
> The reason that (children) and (descendants) return empty node
> lists when applied to the result of (sgml-parse) is that the result is
> a nodelist containing the "sgml-document" node which forms the root of
> the grove. By definition, this node has no children. The
> (process-children) procedure works around this by "pretending" that
> the "document-element" property contains the single child of the
> sgml-document.
> The following alternative to (children) duplicates this:
> (define kids (lambda (#!optional (nd (current-node)))
> (if (equal? 'sgml-document (node-property 'class-name nd))
> (node-list-property 'document-element nd)
> (children nd))))
Thank you very much!!!! This works as a 'tierelier' as we say in dutch!
pieter
--
Pieter Rijken E-mail: pieter.rijken@xxxxxx
CMG Telecommunications and Utilities B.V.
Division Advanced Technology
Nieuwekade 1-19
P.O. Box 8038 Phone: +31 30 2339300
3503 RA Utrecht Fax: +31 30 2339495
The Netherlands
-------------------------------------------------------------------
DISCLAIMER: This statement is not an official statement from, nor
does it represent an official position of, CMG
Telecommunications and Utilities B.V.
-------------------------------------------------------------------
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: sgml-parse, Brandon Ibach | Thread | "nested tables" in Jade&RTF ?, Steve Weyer |
| Re: processing RTF documents, Sebastian Rahtz | Date | Re: Problems with attributes., Reyes |
| Month |