[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Finding last node in recursive tree


Subject: RE: [xsl] Finding last node in recursive tree
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Thu, 7 Aug 2003 15:32:33 -0500

How about
  <xsl:if test="not(following::dataset)">

That is, assuming the context is a dataset node, the test determines
whether it is the last in the document. (This works regardless of
the depth of either the context node or any following dataset nodes.)

Lars

> > The 'dataset' levels will vary in depth.  Other
> > elements will be sprinkled
> > among the 'dataset' nodes.  How can I determine when
> > I am at the beginning
> > of the very LAST 'dataset' node (the node in caps
> > above), regardless if its
> > depth?
> > 
> > Many thanks,
> > 
> > David Woosley


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread