/** * Set the schema validation mode for the transformation. This indicates how source documents * loaded specifically for this transformation will be handled. This applies to the * principal source document if supplied as a SAXSource or StreamSource, and to all * documents loaded during the transformation using the <code>doc()</code>, <code>document()</code>, * or <code>collection()</code> functions. * * @param mode the validation mode. Passing null causes no change to the existing value. * Passing <code>Validation.DEFAULT</code> resets to the initial value, which determines * the validation requirements from the Saxon Configuration. */ public void setSchemaValidationMode(ValidationMode mode) { if (mode != null) { context.setSchemaValidationMode(mode.getNumber()); } }
/** * Set the schema validation mode for the transformation. This indicates how source documents * loaded specifically for this transformation will be handled. This applies to the * principal source document if supplied as a SAXSource or StreamSource, and to all * documents loaded during the transformation using the <code>doc()</code>, <code>document()</code>, * or <code>collection()</code> functions. * * @param mode the validation mode. Passing null causes no change to the existing value. * Passing <code>Validation.DEFAULT</code> resets to the initial value, which determines * the validation requirements from the Saxon Configuration. */ public void setSchemaValidationMode(ValidationMode mode) { if (mode != null) { context.setSchemaValidationMode(mode.getNumber()); } }