Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate<'a, D: Document>(
    schema: &Schema,
    document: &'a D,
) -> Result<Vec<Report<D::N<'a>>>, SchematronEvalError>
Expand description

Evaluates schema against document under ISO’s #DEFAULT phase resolution: schema.default_phase if set, otherwise #ALL (every pattern) — see evaluate_with_phase and plan/05-phase-selection.md. Returns one Report per fired check, in the order patterns/rules/ checks appear in the schema and nodes are visited (document order within a rule’s matches).