Skip to main content

node_matches_child

Function node_matches_child 

Source
pub fn node_matches_child<I: DocIndexLike>(
    node: NodeId,
    test: &NodeTest,
    idx: &I,
    bindings: &dyn XPathBindings,
) -> bool
Expand description

Test node against test as if reached on the child:: axis (principal node kind = element). Exposed for the XSLT pattern matcher, which handles document-node(element(N)) patterns structurally and needs to check the document element against the inner element test.