[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: reverse and forward order
At 10:57 AM 4/11/2003, David wrote:
What Dave means about paremthesese is This leads to a bit of funniness, so that ancestor::*[1] gives you what Dave says preceding::*[1] gives you the most recent preceding element (ancestor::*|preceding::*)[1] gives you the first of the union of both node sets, in document order, namely the document element so if you want to get the <preceding> element here <ancestor> <preceding>I'm preceding<preceding> <node>I'm the context node</node> </ancestor> but the <ancestor> element here <preceding>I'm preceding<preceding> <ancestor> <node>I'm the context node</node> </ancestor> you have to do (ancestor::*|preceding::*)[last()] Cheers, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|