; selects the 'chapter' children of the context node that have one or ; more 'title' children with string-value equal to 'Introduction' ; ; Abbreviated XPath: chapter[title='Introduction'] ; Full XPath: child::chapter[child::title='Introduction'] (define tree '(text (chapter (title "Introduction")) (chapter "No title for this chapter") (chapter (title "Conclusion"))) ) ; Low-level: ((node-reduce (select-kids (ntype?? 'chapter)) (sxml:filter (select-kids (node-equal? '(title "Introduction"))))) tree) ; SXPath: ((sxpath `((chapter ((equal? (title "Introduction")))))) tree) ==> ((chapter (title "Introduction")))