--- Don Smith <[EMAIL PROTECTED]> wrote:
> <xforms:bind nodeset="/form/date" type="xsd:date" required="true()"/>
>
> When I pull up the page to enter the data for "date", I get an error
> message because the form is empty (not what I want). If I enter an
> incorrect value, like Jan.1, 2005, that is accepted (again, not what I
> want).
Don,
I tried to reproduce the issue by modifying the "XForms Text Control" example.
In the XForms model (examples/xforms/xforms-text/form.xml) I am replaced the
<xforms:bind> for "/form/text" with:
<xforms:bind nodeset="/form/text" type="xsd:date" required="true()"/>
I also declared the "xsd" namespace. Now if I don't enter a date, I get an
error, like you do. This is the correct behavior as you have a
required="true()".
If I enter an invalid date ("Jan.1, 2005"), I also get an error, while you
don't. Are you using Presentation Server 2.6, or an older version? If you are
using 2.6, can you try to reproduce your problem by modifying an example like I
did?
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