Re: Recursive elements in DSSSL

Subject: Re: Recursive elements in DSSSL
From: Brandon Ibach <bibach@xxxxxxxxxxxxxx>
Date: Mon, 6 Mar 2000 15:31:38 -0600
Quoting Stephane Bortzmeyer <bortzmeyer@xxxxxxxxxx>:
> On Tue, Feb 29, 2000 at 11:34:06AM -0600, Brandon Ibach wrote:
> 
> >    Try: (node-list-length (select-elements (ancestors n) "SECTION"))
> > This will give you the number of <section>s above the current node.
> > So, for a top level <section>, it would return 0.
> 
> What should be the value of 'n'?
> 
   The value of 'n' should be the node (element) whose "section depth"
you want to calculate.

-Brandon :)


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


Current Thread