sch:let

A declaration of a named variable. If the let element is the child of a
rule element, the variable is calculated and scoped to the current rule and context.
Otherwise, the variable is calculated with the context of the instance document root.<br/>The variable is substituted into assertion tests and other expressions in the same rule
before the test or expression is evaluated.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
name sch:nameValue required
The required name attribute is the name of the variable.
value xs:string required
The required value attribute is an expression evaluated in the current
context.
Wildcard: ANY attribute from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron'