Last child-number? function - is there one?

Subject: Last child-number? function - is there one?
From: "Pawson, David" <DPawson@xxxxxxxxxxx>
Date: Mon, 7 Sep 1998 14:54:22 +0100
I want to put a bigger space after a series of
list items, hence need to know if this node is the 
last in its siblings.

I have used something like 
break-before: (if (= 1 (child-number (current-node)))
			 'page
			 #f)

when wanting to know if this is the first child,

Is there a similar (last-child .... function
to determine if this is the last child of the immediate parent?


Could I use
 space-after: (if (equal? (next-matching-node ) (empty-node-list)) 
               0pt 
              %bf-size%

since (next-matching-node ) 
Returns either the following sibling with the same GI as osnl (or of the
current node if osnl is not supplied) or an empty
node-list if there is no following matching sibling.

Has anyone else needed this one before?

TIA, DaveP


timeo gaecos dona ferentes


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


Current Thread
  • Last child-number? function - is there one?
    • Pawson, David - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id KAA22340Mon, 7 Sep 1998 10:13:24 -0400 (EDT) <=
      • Toby Speight - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA24327Mon, 7 Sep 1998 11:24:38 -0400 (EDT)
      • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA28397Mon, 7 Sep 1998 14:11:09 -0400 (EDT)
        • Louis-Dominique Dubeau - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA05383Tue, 8 Sep 1998 11:27:14 -0400 (EDT)
        • Thomas Corte - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id QAA22285Tue, 29 Sep 1998 16:29:01 -0400 (EDT)