xsl-list
[Top] [All Lists]

Re: Finding last node in recursive tree

2003-08-07 13:39:12
Woosley, David wrote:
Thanks, but you're missing a key point.  The only common ancestor of all
<dataset> nodes is the root node.  Look at this diagram ...

report
  dataset
    dataset
  dataset
    dataset
      dataset
  dataset
    DATASET

I need to know when I'm starting the 'DATASET' that appears in caps -- the
very last dataset node regardless of depth.


how about (//dataset)[last()]

--

--------------------------
Jeff Kenton
DataPower Technology, Inc.



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



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