Subject: Re: Descendants problems From: Brandon Ibach <bibach@xxxxxxxxxxxxxx> Date: Sat, 23 Oct 1999 07:10:22 -0500 |
Quoting Reyes <reyes.garcia@xxxxxxxxxx>: > > What, exactly, is in nl? In other words, what expression resulted > >in the value of nl? > > > I don't understand very good your qzúiestion. But I explain to you what I > have make. > > [...] > > Where there is this tag "LINK-SICHHINW" I want take the datas from the > adress in the attribute > [ http://reyes-nt-pc:2000/MTU_DEMO/SichPool/Motoren/4000/Deutsch/proof.sgm ]. > I make this with "sgml-parse". In this step, I take nl > You just answered my question. :) The node-list, nl, is the result of (sgml-parse). This explains the problem. 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 :) DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Descendants problems, Reyes | Thread | Re: Descendants problems, Reyes |
Re: Descendants problems, Reyes | Date | strings, characters and positions.., Reyes |
Month |