- All Implemented Interfaces:
- com.phloc.commons.ICloneable<PSLet>, IPSClonableElement<PSLet>, IPSElement, Serializable
@NotThreadSafe
public class PSLet
extends Object
implements IPSClonableElement<PSLet>
A single Schematron let-element.
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.
The required name attribute is the name of the variable. The required value
attribute is an expression evaluated in the current context.
It is an error to reference a variable that has not been defined in the
current schema, phase, pattern, or rule, if the query language binding allows
this to be determined reliably. It is an error for a variable to be multiply
defined in the current schema, phase, pattern and rule.
The variable is substituted into assertion tests and other expressions in the
same rule before the test or expression is evaluated. The query language
binding specifies which lexical conventions are used to detect references to
variables.
An implementation may provide a facility to override the values of top-level
variables specified by let elements under the schema element. For example, an
implementation may allow top-level variables to be supplied on the command
line. The values provided are strings or data objects, not expressions.
- Author:
- Philip Helger
- See Also:
- Serialized Form