Re: How to find the occurrence number of a given element within a given ancestor?

Subject: Re: How to find the occurrence number of a given element within a given ancestor?
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Apr 1997 21:46:08 -0400
Geir Ove Gronmo wrote:
> (element-number snl) returns the occurrence of snl within the document
> element.

I think that (element-number-list ...) does what you want. 

(cdr (element-number-list '(chapter figure) (current-node) ))

Look this function up in the spec for more information.

 Paul Prescod

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


Current Thread