|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Simple Question concerning [last()]
> I thought the XPath ".//x[last()] should return the last x-Element in > document order. the last descendent would be ./descendent::x[last()] or (.//x)[last()] .//x is ./descendent-or-self::node()/x so ./x[last()] is ./descendent-or-self::node()/x[last()] and selects every x that is the last x child of its parent. > Changing the selection to > ".//x[2] returns nothing at all! That selects evy x that is teh second x child of its parent. > Is this a bug in the mentioned XSLT processors or have I missed something? the latter. David 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
|

Cart


![Re: Simple Question concerning [last()]](/images/get_stylus.gif)





