[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Quick Xpath
> OK, but any union has the same effect of "loosing" the reverse order, > even (preceding-sibling::*|preceding-sibling::*)[1] and that's pure > XPath :-) It's not the union: it's the brackets (preceding-sibling::*[1]) is the nearest sibling (preceding-sibling::*)[1] is teh first sibling. as the parenthesised expression is evaluated as an Xpath value, hence a node set , so [1] then sorts that node set and takes the first, whereas teh first form is a step expression in which the current node list is in reverse order. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service.
|
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
|