You are right, we are using MSV for W3C Schema validation, and Jing for RelaxNG schemas. MSV and Jing are both fail-fast validator, and only one error can be be reported. This is unfortunate for form validation. I couldn't find anything in MSV documentation about turning off the fast-fail. Please let me know of you can confirm that.
MSV doesn't support schematron, which was implemented as an extension at Berkeley. Schematron could be later included in the Validation Processor so it could also be used for XForms validation.
> One more thought, with the current XForms validation, is it possible > to generate a schema on the fly, and include a reference to it in the > xform model? Right now it seems that only a schema on the file > systems can be used to do xform validation.
No, you can't use a generated schema with XForms validation. Please let me know if it would be useful for you, and we will implement it for the next release.
Regards, Julien
Peter Charles wrote:
Julien,
It seems that the xforms input processor is what you are referring to as "XForms Validation." I assume that processor has a call to the Sun MSV baked in. I looked for an example of how the xforms-input is used but could not find any use of the processor in the examples outside the indirect usage by the web-app controller.
One thing I noticed about the annotated validation of the xfoms-input processor is that it only reports the first error. Is this a function of the xforms-input processor or the MSV(fail-fast)? The MSV documentation is a bit vague on this but it does suggest that the MSV can be configured to catch as many errors as possible.
Since in the context of xforms input there is no chance that of the instances document having extra elements or being malformed, what is really being validated is the data type, it would be more useful if validation reported errors on all elements. This could of course be a configuration parameter.
If both the xforms-input processor and the schematron-validation
processor both use the Sun MSV, It would seem that the
schematron-validation processor could be made to take a config input
that would describe how the validation should proceed, i.e. annotated or
non-annotated.
Peter
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
