Subject: Re: Desperate Questions: [1]Absolute-Child-Number From: "W. Eliot Kimber" <eliot@xxxxxxxxxx> Date: Tue, 24 Jun 1997 15:15:41 -0500 |
At 03:17 PM 6/24/97 -0400, Paul Prescod wrote: >> That's not what the spec says: >> >> "(element-number snl) > >Doh! Sorry. I coulda sworn that was what it did. Is this then what you want: > >(node-list-length (preced (parent node))) Almost: (define (absolute-child-number %element%) (+ 1 (node-list-length (preced %element%))) Now why didn't I think of this? I think partly because I wasn't sure what preced returns--I know I considered it last night. Thanks, Eliot DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Desperate Questions: [1]Absolut, David Megginson | Thread | Re: Desperate Questions: [1]Absolut, Frank Christoph |
Re: Desperate Questions: [1]Absolut, Paul Prescod | Date | Iteration with named let, W. Eliot Kimber |
Month |