Subject: Re: [xsl] reverse and forward order From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 11 Apr 2003 14:53:58 -0400 |
What Dave means about paremthesese is
ancestor::*[1] gives you the first ancestor in reverse document order ie your parent whereas (ancestor::*)[1] gives you your first ancestor in document order, ie your most ancient ancestor; Adam (or Eve) in some cultures.
<ancestor> <preceding>I'm preceding<preceding> <node>I'm the context node</node> </ancestor>
<preceding>I'm preceding<preceding> <ancestor> <node>I'm the context node</node> </ancestor>
Cheers, Wendell
___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_ "Thus I make my own use of the telegraph, without consulting the directors, like the sparrows, which I perceive use it extensively for a perch." -- Thoreau
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] reverse and forward order, David Carlisle | Thread | Re: [xsl] reverse and forward order, Andrew Watt |
RE: [xsl] Seeking methods using XSL, Michael Kay | Date | Re: [xsl] Is possible to get extern, Wendell Piez |
Month |