xsl-list
[Top] [All Lists]

RE: Finding last node in recursive tree

2003-08-07 13:32:33
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



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