; selects the 'para' element descendants of the 'div' element ; children of the context node ; ; Abbreviated XPath: div//para ; Full XPath: child::div/descendant::para (define tree '(elem (@ (name "elem") (id "idz")) (para (@) "para") (br (@)) "cdata" (para "second par") (div (@ (name "aa")) (para (@) "third para") (div (para "fourth para")))) ) ; Low-level: ((node-join (select-kids (ntype?? 'div)) (node-closure (ntype?? 'para))) tree) ; SXPath: ((sxpath `(div // para)) tree) ==> ((para (@) "third para") (para "fourth para"))