xf:date vs xs:date
Posted by
mabu on
URL: https://discuss.orbeon.com/xf-date-vs-xs-date-tp4661172.html
Hi,
According to
http://www.w3.org/TR/2001/WD-xforms-20010608/slice4.html there is no difference between the primitive datatype date defined in xml and xforms standard.
If I use Form Builder and insert a date input field I can see in the code that the bind uses the xforms datatype xf:date. But if I want to put a constraint on that field for example . >= xs:date('2010-01-01') I have to use the xml date datatype because otherwise I get the validation error "Invalid XPATH-Expression".
So, is this is a bug or wanted? Is there a difference between these two datatypes? When to use which one?
Martin