Re: [xsl] Finding the last ancestor of a list

Subject: Re: [xsl] Finding the last ancestor of a list
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 25 Oct 2006 20:57:21 -0400
At 2006-10-26 09:29 +0930, Fleetwood, Brett \(DCS\) wrote:
I want to find out if the ancestor <li> is the last of the <ol>.

test="not(ancestor::li[1]/following-sibling::li)"


"there is no following-sibling li of my closest ancestor li"

I added the "closest" because of nested ordered
lists (you don't say if they are nested, but you
would need the "[1]" to ensure you are looking only at the closest ancestor).

I hope this helps.

. . . . . . . . Ken

--
UBL/XSLT/XSL-FO training: Allerxd/Verx Denmark 2006-11-13,17,20/24
UBL International 2006  2006-11-13/17 http://www.ublconference.com
World-wide corporate, govt. & user group UBL, XSL, & XML training.
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread