It is one of the projects that I looked at initially along with Chiba and
ExForms.
Appears that Schemox has been frozen back in 2000.
Although it was presented on the Cocoon dev list an integrated solution
never saw the light of day.

That's why I keep saying we should try to finish the beast this time !

To give everyone a heads up, I am now working on Java API for XML Schema and
Schematron validation of JavaBeans, which can be easily used in the Action
classes. The end goal is for these APIs to be merged with Torsten's code.

imagine code similar to:

SchamatronValidator sv = new SchematronValidator("my-schema-report.xml");
sv.setXmlBinder( SomeCastorWrapper );
sv.setPhase("loginPhase");
ValidationResult vresult = sv.validate(myJavaBean);
if (vresult.isEmpty() )
  move on to db insert
  objectMap.setAttribut("validationSuccess", Boolean.TRUE);
else
  {
  objectMap.setAttribut("validationSucces", Boolean.FALSE);
  session.setAttribute("validationResult", vresult);
  }

then further in the pipeline:

<selector
  <when test="validationSuccess">
    render next page
  <otherwise>  <!-- render the old page -->
   <transformer type="castor" src="page-with-errors.xml"/>
   <transformer src="xmlform2html.xsl/>

where page-with-errors.xml is

<xmlform  xmlns:castor="castornamespace">
  <insert bean="xmlform"/>
  <insert bean="validationResult"/>
</xmlform>


How does that look?


----- Original Message -----
From: "Nicola Ken Barozzi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 1:43 PM
Subject: SchemoX forms


> It just might help a bit with forms stuff:
>
> http://www.infozone-group.org/schemoxDocs/html/ctwo.html
>
> --
> Nicola Ken Barozzi                   [EMAIL PROTECTED]
>             - verba volant, scripta manent -
>    (discussions get forgotten, just code remains)
> ---------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to