[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: reverse and forward order

Subject: Re: reverse and forward order
From: Andrew Watt <andrew@xxxxxxxxxxxxxx>
Date: Fri, 11 Apr 2003 21:09:25 +0100
Re:  reverse and forward order
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.