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