[hidden email] wrote:
> I want to define a element in type date like this:
> <xforms:bind nodeset="/form/FormCommunOrbeon/mdtDate" type="xs:date" required="true()"/>
> But my date is in format DD/MM/YYYY and for the validation the format have to be YYYY-MM-DD.
> It is possible to change the validation format ?
A date following the XML Schema xs:date type has to be in the ISO format
YYYY-MM-DD. From that perspective, there is no possibility of changing
However, you can use your own XML Schema type or XPath contraint to
enforce your own format.
Now it should be said that it is good practice to use the ISO / XML
Schema date format in all XML documents, because it's the standard. Same
applies to xs:time and xs:dateTime.
But for presentation and input purposes, of course, you would like to be
able to chose your own date format, while keeping the standard date
format in XForms instances. Such a feature will be in OPS 3.0 final.
In the meanwhile, you have to use some tricks get to that, like using
another field in another XForms instance, and copying data back and
forth while converting it.