xsl-list
[Top] [All Lists]

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

2006-10-25 17:57:45
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: Allerød/Vårø 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(_at_)CraneSoftwrights(_dot_)com
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>