--- [EMAIL PROTECTED] wrote: > 1) using schema to validate xforms instance 2) using xforms:bind > statements to do the validation.
Hi Bal�zs, With the current version of Presentation Server, schema validation might not report all the errors in an XForms instance. It will always report errors on an invalid instance, but not necessarily all of them. This is due to a limitation of the current schema validator we use and we are working on fixing this by switching to another validator. For more details, see the entry below: http://sourceforge.net/tracker/index.php?func=detail&aid=1105695&group_id=116683&atid=675660 Also, schema validation does not work for attributes at right now. We are planning to have those two issues fixed in the next release of Presentation Server. Until this is done, I would recommend you do not use schema validation. > On the other hand if I am doing validation with bind statements I have > two problems: 1) there is a nasty redundancy in the validation rules - > even when nesting them - the validations are defined once on the element > level once on the attributes; So I understand you need the instance to be annotated with xxforms:valid="false" (or some other annotation), which is not the case right now if the error is in an attribute. We are considering adding this capability to Presentation Server. To help us make right design decisions, could you give us more information about your use case? How are you then using those xxforms:valid="false" annotations? > The above, the examples and your letter seemed to suggest to me that the > way to go is to redefine our schema to not have attributes and use child > elements instead. This is a critical question to decide right now before > we have much too much code and data to retrofit. All the issues you are mentioning are only specific to attributes. So always using elements is a solution, but of course our goal is to make sure future versions of Presentation Server handle attributes just as well as elements. Alex ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user
