RE: Nodes and counting, a solution

Subject: RE: Nodes and counting, a solution
From: "Pawson, David" <DPawson@xxxxxxxxxxx>
Date: Wed, 1 Oct 1997 08:31:21 +0100
Thanks for the help folks.

Final version, working: Implements the 'if a sibling exists called
[ Tony, is this a candidate for the cookbook?]

;; sibling-with-name (name)

(define (sibling-with-name  name)
(not (node-list-empty? 
	(select-elements(children (parent (current-node))) name))))

(element title (make paragraph
	use: para-style
	quadding: 'center
	space-after: (if (sibling-with-name "child2") 0pt 2em) 

Getting to like dsssl. 
(Even got a scheme programmers manual on order!)

Is it just me, but there would appear to be about a million and one ways
of doing a job a la Jade. C would have left far fewer sensible choices.

Regards, DaveP

 DSSSList info and archive:

Current Thread