RationaleThe validation processor can be inserted in a pipeline to validatate data against a specified schema. The current implementation supports W3C Schema and Relax NG.
The validator functions in two distinct mode. The decorating mode adds
attribute to the document where errors occur. The non-decorating mode throws
a Usage
Config input
The configuration input selects the mode of the validator. The validator can
either be in the decorating mode or the non-decorating mode. The
Schema inputThe validation processor's schema input contains a supported XML schema (W3C or Relax NG). The schema type is automatically recognized. The following example shows a simple Relax NG schema for an arbitrary address book.
For more information about Relax NG syntax, read the Relax NG specification and Relax NG tutorial. The W3C Schema Primer provides a good introduction to the language. Data inputThe data input contains the xml data to be validated. The following document is valid against the address book schema defined above.
Data output
If the input data is valid against the specified schema, this output mirrors
the input data, i.e. the validation processor is invisible in the pipeline.
However, when validation errors occur, a
For each validation error, the validator inserts an additional element after
the error-causing element. This element is in the
|