Re: Nodes and counting

Subject: Re: Nodes and counting
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Tue, 30 Sep 1997 11:19:44 -0400
Pawson, David wrote:
> (element child1 (
>    make paragraph
>    use: para-style
> space-after: (if (> (node-list-length (parent (current-node))) 2) 0pt
> 2em)
>   (process-children)))
> 
> The intent is that if there are three elements under parent, I will have
> 0pt space after child1.
> I always get a false from the 'if' statement.

That's because you are asking what the length of the parent is. What's
the length of my father?  I dunno, about 5'9. I think you want to get
the length of the parent's *children* node-list.

 Paul Prescod

 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread