fn value_into_ordered_nodes(v: Value<'_>) -> Result<OrderedNodes<'_>, Error> {
    match v {
        Value::Nodeset(ns) => Ok(ns.document_order().into()),
        _ => Err(Error::NotANodeset),
    }
}
// In these cases, we use document order. From the spec:
//
// > `(preceding::foo)[1]` returns the first `foo` element in document
// > order, because the axis that applies to the `[1]` predicate is
// > the child axis
//
In these cases, we use document order.
In these cases we use document order .
fn value_into_ordered_nodes(v: Value<'_>) -> Result<OrderedNodes<'_>, Error> {
    match v {
        Value::Nodeset(ns) => Ok(ns.document_order().into()),
        _ => Err(Error::NotANodeset),
    }
}
fn value_into_ordered_nodes ( v : Value < ' _ > ) -> Result < OrderedNodes < ' _ > , Error > { match v { Value :: Nodeset ( ns ) => Ok ( ns . document_order ( ) . into ( ) ) , _ => Err ( Error :: NotANodeset ) , } }
In these cases, we use document order.
In these cases we use document order .
v
Value<'_>