[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xpath expression - select first node from last parent
Hi, I would like an generic Xpath expression that will match the first child of a parent that is positionally last. For example, using this highly descriptive piece of ascii art: a---a---a---a---a | b---b---b---b ^ All 'b' elements are children of the last 'a' element. I want to be able to recognise when Im at the first b of the last 'a'. Something like: *[position()=1] and parent::*[postion()=last()] combined. cheers andrew === 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
|