|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Select the nearest of two preceding siblings
> Sorry if this is too simple, but I'm still a bit new at this. > I need to compare the relative positions of two preceding > siblings and grab the value of the nearest one. I haven't managed to follow the detail of your requirement, but given two nodes $A and $B you can select the one that comes last in document order using ($A|$B)[last()] or if you prefer if ($A>>$B) then $A else $B Michael Kay http://www.saxonica.com/
|
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
|

Cart








