Re: newbie question, nesting level query

Subject: Re: newbie question, nesting level query
From: Stephen Perkins <stephenp@xxxxxxxxx>
Date: Fri, 07 Nov 1997 09:27:03 -0500
Paul Prescod wrote:
 
> > A simple, but (for today) beyond my impatient-newbie grasp question:
> >
> > A posted example stylesheet for html
> > (http://www.jclark.com/dsssl/examples/style/html.sty.txt) has a
> > procedure call
> >
> > (nesting-level "ol")
> 
> This stylesheet is old and is based on an old draft of DSSSL, not the
> final product.
> 
>  Paul Prescod
> 


Thanks for the tip. I solved this with:

; to return nesting level as integer
(define nesting-level
        (lambda (nest-level-element)
                (length (hierarchical-number-recursive
nest-level-element)
        )
))




Stephen Perkins
Pagesetters Incorporated / AlphaBytes MCL
e-mail: stephenp@xxxxxxxxx
WWW:    http://www.abmcl.com
        http://www.abmcl.com/pagesetters

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


Current Thread