The
ValidationReportTransformer provides a
Transformer validating documents while being processed in a Cocoon pipeline, and preparing
a report of all detected inconsistancies according the specified schema.
The only defined (but not required) configuration for this component is
<grammar>...string...</grammar>
indicating the default grammar language of the schemas to use.
This configuration parameter can be overridden by specifying the
grammar parameter when using this
Transformer in a
pipeline.
If no grammar is specified (either as a configuration, or a parameter) this
transformer will instruct the
Validator to try and guess the grammar
of the schema being parsed.
The report prepared by this transformer will look like the following:
<report xmlns="http://apache.org/cocoon/validation/1.0">
<warning system="..." public="..." line="..." column="...">
... detailed message ...
</warning>
<error system="..." public="..." line="..." column="...">
... detailed message ...
</error>
<fatal system="..." public="..." line="..." column="...">
... message ...
</fatal>
</report>
The location attributes specified in the <warning/> ,
<error/> and <fatal/> tags are all optional
and will be generated only if known.
|