Skip to main content

evaluate_with_phase

Function evaluate_with_phase 

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

Evaluates schema against document, restricted to the patterns activated by the phase named phase_id — None means #ALL (every pattern, ignoring Schema.phases entirely). Some(id) with no matching Schema.phases[_].id is SchematronEvalError::UnknownPhase. See plan/05-phase-selection.md.