; selects the last para child of the context node ; ; Abbreviated XPath: para[last()] ; Full XPath: child::para[position()=last()] (define tree '(elem (@ (name "elem") (id "idz")) (para (@) "para") (br (@)) "cdata" (para "second par") (div (@ (name "aa")) (para (@) "third para"))) ) ; Low-level: ((node-reduce (select-kids (ntype?? 'para)) (node-pos -1)) tree) ; SXPath: ((sxpath `((para -1))) tree) ==> ((para "second par"))