(>> & forms)
Compose the given xpath selector forms to a combined selector, where from left to right, the selectors restrict the selection further. Special selector forms are:
/
selects the the immediate children.
.
selects/keeps the current node (will only rarely be needed).
..
selects the parent node.
...
selects the root node.
**
selects the current node and all its children and grand children.
[x y]
filters as with (has? (>> x y))
Any other form should evaluate to a selector as with comp
.
For example (>> / **)
selects the children and all grand children from the current node.
Compose the given xpath selector forms to a combined selector, where from left to right, the selectors restrict the selection further. Special selector forms are: - `/` selects the the immediate children. - `.` selects/keeps the current node (will only rarely be needed). - `..` selects the parent node. - `...` selects the root node. - `**` selects the current node and all its children and grand children. - `[x y]` filters as with `(has? (>> x y))` Any other form should evaluate to a selector as with [[comp]]. For example `(>> / **)` selects the children and all grand children from the current node.
(comp & selectors)
Compose the given xpath selector forms to a combined selector, where from left to right, the selectors restrict the filter further.
Valid selectors are all the primitives from this module, as well as:
attr
Also see >>
for a convenience macro version of this.
Compose the given xpath selector forms to a combined selector, where from left to right, the selectors restrict the filter further. Valid selectors are all the primitives from this module, as well as: - strings stand for a virtual dom nodes - named item or the function creating named item, stand for such items. - keywords stand for attribute names of dom nodes as with [[attr]] Also see [[>>]] for a convenience macro version of this.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close