Re: Conditional numbering in DSSSL

Subject: Re: Conditional numbering in DSSSL
From: Holger Klawitter <holger@xxxxxxxxxxxx>
Date: Mon, 27 Mar 2000 15:36:31 +0200
Out of the top of my head:

; Returns #t if the node "nd" has sibling with the same gi.
(define (has-siblings? nd)
	(< 1 (node-list-length (select-elements (children (parent nd)) (gi nd))))
)

Then (has-siblings? (current-node)) should give you what you want.

Regards,
	Holger Klawitter
--
Holger Klawitter                                     +49 (0)251 484 0637
holger@xxxxxxxxxxxx                             http://www.klawitter.de/


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


Current Thread