Subject: Re: Descendants problems From: Reyes <reyes.garcia@xxxxxxxxxx> Date: Sat, 23 Oct 1999 14:45:59 +0200 |
> The node-list returned by (sgml-parse) is a singleton node-list >containing just the root of the new grove. In the SGML property set, >the root of the grove, a node of class sgml-document, has no children. >Thus, procedures such as (children) and (descendants) will always >return empty node-lists when applied to this node. > The (process-children) procedure works around this by checking the >class of the node and returning the value of the document-element >property if the node is an sgml-document. So, try: > > (select-elements > (descendants (node-property 'document-element nl)) son) > >and I think you'll get what you want. > >-Brandon :) Yes, this was the problem !!!! Thank you!!! Reyes Reyes Garcia-Rosado STAR GmbH Tel. +49 7735 939801 Westendstrasse 1 e-Mail. rgr@xxxxxxxxxx D-78337 Oehningen http://www.star-ag.ch DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Descendants problems, Brandon Ibach | Thread | strings, characters and positions.., Reyes |
strings, characters and positions.., Reyes | Date | Re: SGML declarations for subdocume, Matthias Clasen |
Month |