[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Finding the first among equals using XPath
something like
I was working along the right lines before, but was trying to count the nodeset of siblings of the context node with the same attribute value, which involved a predicate inside the predicate and I needed the broader vision. I have written lots of XSL, but only basic stuff and now I am revisiting some of it I am keen to do a better job, so I would be grateful if someone would confirm my understanding of the above (without the ..) I think it is saying select all X for whom it is not true that the value of the attribute Y is equal to the value of the same attribute on any following sibling X. In which case it is choosing the last X with each value of Y. The .. is not needed because the context in which the attribute is seen is an X and so searching for its siblin Xs is at the same level. Is that all correct? Cheers, Peter (A very happy one who you may see asking more dumb questions on this 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
|