Hello Bill,

Yes, XSLTForms supports all of them.

Have a look at 5.2.6, 5.2.7.a and 5.2.7.b tests for xforms:email and 
xforms:card-number types.

Test 2.3.a is based on a regular expression.

It is possible with XSLTForms to define its own XPath functions with 
Javascript. Have a look at XsltForms_xpathCoreFunctions in xsltforms.js

Thank you for your feedbacks!

-Alain

Le 16/02/2012 14:55, William Velasquez a écrit :
> Hi list,
>
> I'm couldn't find clear documentation about the right way of validating
> a field vs a regular expression (ie. email, credit-card, phone) client
> side (you can always validate on server vs schema, but this is not the
> case).
>
> I've found in XForms documentation and other sources various methods to
> do this, but I'm not sure XSLTForms can support them:
>
> - Specifying an Schema for the instance
> - Using custom datatypes in the type attribute of xf:bind
> - Using user defined functions in Javascript and calling it from bind
> constraints or xforms-value-changed event handler
> - Maybe other...
>
> Can somebody state the best method to do this with XSLTForms.
>
> Thanks for all the help you can provide,
>
>
> Bill
>
>
> ------------------------------------------------------------------------------
> Virtualization&  Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Xsltforms-support mailing list
> Xsltforms-support@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Xsltforms-support mailing list
Xsltforms-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to