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



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Julien Mercay
Sent: Friday, July 25, 2003 3:31 PM
To: OXF Users
Subject: Re: Validation

Hi Peter,

The annotating validator is only used during XForms validation at this
time. Your use case is certainly valid and you should be able to use
the validation processor in a stand alone mode. I added a new bug to
our tracking system, and I will send you a patch as soon as it is
ready. You can track the progress by going the following URL:

http://athlon.orbeon.com/webtools/bugzilla/show_bug.cgi?id=1231

Regards,
Julien

Peter Charles wrote:

> Julien,
> 
> Can you please explain the second version (annotating) of validation
for
> me, specifically how it is invoked. Is it only invoked when a an
> xforms:submit is called? 
> 
> I would like to accept data from an xform, strip out a group of
elements
> and then validate them against a schema, I would like to use the
> validation method that inserts annotated data back into the xform
> document.  
> 
> You can image that the original xform is made up of several different
> instance documents and generated dynamically. For instance the page
> contains both data for a credit card and a billing address.  I have
both
> a creditCard.xsd and an address.xsd  I would like to validate each
part
> against its individual schema.  I would like to have the xform
annotated
> as that way I can pass element level failure info back to the user.
> 
> Is this possible using the annotating validation method?
> 
> Thanks
> 
> peter


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to