Re: [xsl] reverse and forward order

Subject: Re: [xsl] reverse and forward order
From: Andrew Watt <andrew@xxxxxxxxxxxxxx>
Date: Fri, 11 Apr 2003 21:09:25 +0100
At 15:57 11/04/2003 +0100, David Carlisle wrote:
whereas
(ancestor::*)[1] gives you your first ancestor in document order, ie
                your most ancient ancestor; Adam (or Eve) in some
               cultures.

David,


Not quite, I think.

The (ancestor::*)[1] gives you the first ancestor in document order that is of the principal node type of the ancestor axis i.e. an element node. But it doesn't actually give the first ancestor in document order, which is the root node.

At least that's my $0.02.

Andrew Watt



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


Current Thread