--- [EMAIL PROTECTED] wrote:
> It is obvious from the source above that the validation is duplicated
> which is not preferable. Is there some solution to avoid this redundancy
> that we have overlooked or should we design XML schemas with using
> elements instead of attributes ?
Hi Bal�zs,
I assume you have a good reason to want to use the xxforms:valid
attributes, but the first question you can ask yourself is: can I do
without the xxforms:valid attributes? If you can, then the problem is
solved. Otherwise, you can just make the second "nodeset" expression a
little shorter and the code more readable by embedding the <xforms:bind>
expressions:
<xforms:bind nodeset="/form/document/person"
constraint="@name != '' and @dateOfBirth != ''">
<xforms:bind nodeset="@name" constraint=". != ''"/>
<xforms:bind nodeset="@dateOfBirth" constraint=". != ''"/>
</xforms:bind>
Alex
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user